Skip to content
- SSH to Desired Server, Refer to this Article.
- For Production Update following instances
- AX-PROD-APP-AUTO-SCALING-GROUP
- AX-PROD-CELERY
- For Dev/QA/Stage
- Activate the virtual environment.
source axonatorvirtualenv/bin/activate
- Go to source code directory
- Updating Code
git fetch --all
git reset --hard origin/{branch}
- Migrate if any migrations
python manage.py migrate axonator
- Collect static files
python manage.py collectstatic --noinput
- Restart Celery Service – Only for AX-PROD-CELERY Instances
ps aux | grep -ie 'celery worker' | awk '{print $2}' | xargs kill -9
sudo service axonator-celery start
sudo service axonator-celery status
- Restart Gunicorn Service – Only for AX-PROD-APP-AUTO-SCALING-GROUP Instances
sudo service axonator-gunicorn restart
sudo service axonator-gunicorn
status
- Check status
sudo service axonator-celery status
sudo service axonator-celery-priority status
sudo service axonator-gunicorn status
- Minify and Deploy the Angular app
- Go to the base directory of the code
- Execute the following commands
- node minify/minifyAll.js QA – For QA
- node minify/minifyAll.js Stage – For Stage
- node minify/minifyAll.js PRODUCTION – For Production
- This will deploy all files and invalidate it
Was This Article Helpful?
0
0 Comments