Skip to main content

Guide to Install Admin on VPS Automated Setup

This guide will help you install the Investra admin panel on VPS using the automated deployment script.

Upload Admin and Deployment Project to Virtual Server from Local PC

To upload the zipped admin and deployment files to server, you need to run the below command from your Investra project root.

Please follow the below steps:

  1. Extract the Investra package that you download from CodeCanyon.
  2. After that you see two zip files called 'core.zip' and 'deployment.zip' and documentation folder.
  3. Now extract the core.zip file to the core folder.
  4. Now you will get four zip files called admin.zip, standalone-client.zip, static-client.zip and mobile.zip on core folder.

As you can see the folder structure like below:

investra
├── documentation
├── core
│ ├── admin.zip
│ ├── standalone-client.zip
│ └── static-client.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 admin.zip and deployment.zip.

info

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

  1. Open a terminal window.
  2. Connect to your server and deploy the 'admin' and 'deployment' files to your server.
  3. 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

Backend Build - RUN on Server

zx /var/www/investra/deployment/backendbuildscript.mjs

After successfully building the backend, serve the application from your main domain app.YOURDOMAIN.COM.

Follow the graphical instruction from the documentation.

Conclusion

Congratulations! You have successfully installed Investra admin on your VPS using automated setup. If you have any questions, please contact our support team.