Build and deploy a simple setup for a Django app on devo.ps.
Simply use the link below:
Once you've forked the repository, open it in devo.ps and you will be prompted for a few settings, including the Git URL for the code of your application.
To deploy your app, you will need to navigate to the tasks page of the repo and run the task manually (click on "play" icon, right of the "Build the Django app" task).
This setup contains one server (nodes/django.yml
) with Nginx, Python, uWSGI (with emperor) and MySQL 5.5 (with a "django" user and a "django" database)
We have included as well a task (tasks/build-django.yml
) that:
- Clone your django app from GitHub (set to JuhaS/django-sample-app by default).
- Install all your application dependencies defined in your
requirements.txt
file - Run a build script (
scripts/install_local_py.sh
) that will: - Write the configuration file (to connect it to MySQL)
- Sync the database using the
manage.py
script - Setup the uWSGI application (vassal)
The current repo provides a very simple setup. Hack at will!
If you have any question, come ask us on the devo.ps chat or shoot us an email at help@devo.ps (though, you should really just ask us in the chat).