Integrating Ansible in the Django Unchained Code Pipeline

akugel | Oct. 11, 2022, 10:52 a.m.

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!

Leave a comment

About Me

I'm Anthony Kugel, a cloud engineer and freelance web developer. I made this site with the help of djangocentral.com.

LinkedIn
What I'm listening To