Skip to content

Integrating Ansible in the Django Unchained Code Pipeline

By akugel

So up until now, anytime I would want to deploy changes to my production environment, I would have to:

  1. Push the changes to my remote github repository
  2. Pull the changes from django unchained directory on my web server
  3. Run manage.py makemigrations
  4. Run manage.py migrate
  5. Run manage.py collectstatic
  6. Cycle Gunicorn
  7. Cycle Nginx

Now I have streamlined this a bit using my new handy dandy Ansible Playbook.

This allows me to immediately to run this playbook as soon as I push my changes to my django unchained github repository. Now I no longer have ssh to my web server at all! Pretty neat!

0 comments

Leave a comment