Skip to content Skip to footer

How To Update Server?

  • 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
    • AX-QA
    • AX-TEST
  • Activate the virtual environment.
    • source axonatorvirtualenv/bin/activate
  • Go to source code directory
    • cd code
  • 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 ServiceOnly 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 ServiceOnly 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

There are no comments yet

Leave a comment

Your email address will not be published. Required fields are marked *

Close Bitnami banner
Bitnami