Mobility Server
We have test and production servers for Mobility and a Database server
The credentials of each server will be shared separately.
Login into Test Server, then from it you can login to app and inside that you can login to DB Server.
Test Server hosting link is 'vrslicktest.com" and App server is "vrslick.com". Both of them use nginx as web server.
Test Server
- The path is /mobility/deploy-mgmt. There are following files/folders in it:
build-mgmt
- Repo to apply and update builds.
stage-hosted
- Have build repos of things hosted on test server.
stage-other
- Other build reps
external-pull-repos
- Repos not hosted on mobility servers
Apart from these there are bash files to update the codes etc.
Cron jobs
- There are multiple cron jobs running. To view the cron jobs:
- The major jobs which are running are:
- Backup of MongoDB
- Applying docs build.
- Pulling the builds.
Production Server
- The path is: /store/deploy-mgmt
- Production Server also follows the same structure. It has build folders similar to stage but for things hosted on production server.
- Cron Jobs can also been seen and updated by same command.
Database Server
- The path is: /datastore
- It has mongodb_storage folder which has mongo db data stored.
- For Feedback Module backend, Nginx and PM2 are used. The reference docs for them are as:
- Nginx
- PM2
Servers are mainly used for applying build manually, pull build manually or debugging if any issue comes in build.
Apply build manually
Follow the following steps to apply build manually:
- Go to build-mgmt by using cd command
- Go to build_config and then to the folder whose build you want to apply.
- Edit the file using 'vi build.sh' command.
- Copy the command
- Move back to build-mgmt folder and run the command.
Pull build manually
Follow the following steps to pull build manually:
- Go to the folder where you want to pull.
- Run command 'git pull'.
- If it is giving merge issues the run the commands in following order:
Backup Paths
- DBServer /datastore/mongodb_storage. Every 15 mins git commit is happening.
- App Server /store/mongodb-backup. Git pull is happening every hour 30th min.
- Test server /mobility/m-db-p.
Repositories
Most of the folders in server are git/github repositories. So backup can be taken from there as well by cloning the repos.
To see the remote path in any folder use following command:
To clone any repository use: