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:
- Push the changes to my remote github repository
- Pull the changes from django unchained directory on my web server
- Run manage.py makemigrations
- Run manage.py migrate
- Run manage.py collectstatic
- Cycle Gunicorn
- 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