The website is managed by PM2, a process management system that allows to run and manage process state.
To run the website, run following commands:
mvn clean install
- This will build the website and create a jar file
sudo pm2 start start.json
- This will start the PM2 manager and change all the config files and run the application
sudo pm2 stop all
sudo pm2 logs
For more information on PM2, refer PM2
PM2 configuration is present in start.json
Refer to docs before making any changes
To switch back to old website, run the following commands:
sudo ./switch_config.sh --newToOld
If a version number is changed in pom.xml, make sure the start.json file is updated to incorporate new changes