https://github.com/bigbv/django-ansible
A bare minimal ansible setup for deploying django+uwsgi+nginx+postgres
https://github.com/bigbv/django-ansible
ansible deployment django
Last synced: about 2 months ago
JSON representation
A bare minimal ansible setup for deploying django+uwsgi+nginx+postgres
- Host: GitHub
- URL: https://github.com/bigbv/django-ansible
- Owner: bIgBV
- Created: 2017-05-14T12:59:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-14T13:07:03.000Z (about 9 years ago)
- Last Synced: 2025-04-05T00:17:15.765Z (about 1 year ago)
- Topics: ansible, deployment, django
- Language: Shell
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Django-ansible
This is a simple setup for deploying django apps running postgres using uwsgi and nginx.
To run this file you need to:
* Fill in the various variables according to your specific project in the file `env_vars/base.yml`.
* Following that you need to add the public/private ssh keys used to access the git repository in the root directory and name them `deploy_key`, `deploy_key.pub`.
* Modify the contents of `ansible-cfg/hosts` to the ip's of your server and copy the contents of the file over to `/etc/ansible/`
Then all you have to do is run
ansible-playbook -s vagrant.yml -u vagrant -vv
To test the setup out in a ubuntu 14.04 vagrant box, or
ansible-playbook -s web.yml -u ubuntu -vv
To provision a server and deoploy your app on it.