Skip to content

Nitron/django-vagrant-salt-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-vagrant-salt-template

Django startproject template that provides a working Vagrant/Salt setup with:

  • nginx
  • gunicorn
  • PostgreSQL
  • Celery
  • RabbitMQ
  • pgbouncer

Requirements

  • Vagrant
  • Salty Vagrant
  • Virtualbox or VMWare Fusion (and the Fusion provider for Vagrant)

Usage

  1. Install Django (globally in this case, but a virtualenv may be used):
$ sudo pip install django
  1. Start the project from the template:
$ django-admin.py startproject --template=https://github.com/Nitron/django-vagrant-salt-template/archive/master.zip --extension=py,sls <project name>
$ cd <project name>
  1. Install the requirements on your host machine:
$ sudo pip install -r requirements-vagrant.txt
  1. Run! This command will start the Vagrant box, bootstrap Salt, provision the box, syncdb/migrate, and start the watchdog process:
$ fab vagrant_up
  1. Open http://localhost:8000 in your browser (note that the port might be different if something is already bound to port 8000 when Vagrant starts. Look near the beginning of the output of "fab vagrant_up" to see where it mapped the port. It's probably 2201.)

  2. See fabfile.py for more commands

About

Django startproject template that provides a working Vagrant/Salt setup with nginx/gunicorn/Postgres/Celery/RabbitMQ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published