How To Update Code in Server?
FOR BOTH BACKEND & FRONTEND
SSH to Desired Server, Refer to this Article.
For Production – Update following instances
- AX-PROD-APP-AUTO-SCALING-GROUP
- AX-PROD-CELERY
For QA Update following instances
- AX-QA
Steps To Update Code For Production Server
- cd code (base directory of the code)
- git pull (if only single – production branch need to be updated ) // git fetch –all (if all branches need to be updated
- In local “cd Code” & ” node minify/minifyAll.js” (only for frontend update )
IF NEEDED — Restart Celery Service – Only for AX-PROD-CELERY Instances
sudo service axonator-celery
sudo service axonator-celery status
IF NEEDED — Restart Gunicorn Service – Only for AX-PROD-APP-AUTO-SCALING-GROUP Instances
sudo service axonator-gunicorn restart
sudo service axonator-
gunicorn
status
Steps To Update Code For QA Server
- cd QA_environment/qa_code/ (base directory of the code)
- git pull (if only single – QA branch need to be updated ) // git fetch –all (if all branches need to be updated
- node minify/minifyAll.js QA (only for frontend update )
0 Comments