Guide to Install Web on VPS Automated Setup
This guide will help you install the Investra web frontend on VPS using the automated deployment script.
This guide assumes you have already installed the admin panel on your VPS.
Upload Client Files and Deployment Project to Virtual Server from Local PC
To upload the zipped client and deployment files to server, you need to run the below command from your Investra project root.
Please follow the below steps:
- Extract the Investra package that you download from CodeCanyon.
- After that you see two zip files called 'core.zip' and 'deployment.zip' and documentation folder.
- Now extract the core.zip file to the core folder.
- Extract the core folder and now you will get four zip files called
admin.zip,standalone-client.zip,static-client.zipandmobile.zipon core folder.
As you can see the folder structure like below:
investra
├── documentation
├── core
│ ├── admin.zip
│ ├── standalone-client.zip
│ ├── static-client.zip
│ └── mobile.zip
├── local_deployment
└── deployment.zip
While running the below command, you will be asked to enter your server username and ip address. After a successful connection, you will also be asked to enter your standalone-client.zip.
Ensure that you have two domains for your Investra project, one for admin and another for client project.
Recommended: admin: app.YOURDOMAIN.COM and client: YOURDOMAIN.COM.
Start the Deployment Script from Your Investra Project Root
- Open a terminal window.
- Connect to your server and deploy the 'client' and 'deployment' files to your server.
- Run the below command from your Investra project root:
bash local_deployment/deployment.sh
Note: When uploading or unzipping the files to your server, it will ask you to Enter your password every time. This is your server root password.
After that, you will see the below message on your terminal if you have successfully uploaded the files to your server:
Server Environment Setup Script - RUN on Server
Access the server and run the below command:
ssh YOURNAME@YOURSERVERIP
Example: ssh root@000.000.000.000
Then run the below command:
bash /var/www/investra/deployment/nodesetup.sh
Nginx Setup and Settings - RUN on Server
zx /var/www/investra/deployment/setenv.mjs
Frontend Build Script - RUN on Server
After the backend is built, run the frontend build script:
zx /var/www/investra/deployment/frontendbuildscript.mjs
Now you can access your Investra web frontend from your domain YOURDOMAIN.COM.
Conclusion
Congratulations! You have successfully installed Investra web on your VPS using automated setup. If you have any questions, please contact our support team.