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 QA/Test
- 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-gunicorn status
- For Production/QA
Invalidate objects on cloudfront for respective CDN
.
Was This Article Helpful?
0
0 Comments