Get a Python (web) development environment up-and-running quickly through the powerful and wonderful Vagrant and Chef-Solo.
- Install Vagrant.
- Clone this repository:
git clone https://github.com/kfr2/python-web-dev-box
cd python-web-dev-box
git submodule init
git submodule update
- Copy your project's files into
projects
. You may want to use a symbolic link instead. - Update
sql-dump-uri.txt
to contain the URI of a SQL dump to load into the server's database upon provisioning. Alternatively, you may copy the dump file intoprovisioning/initial.sql
. If you do not wish for initial loading of data, create.initial_db_loaded
within this project's root directory. - Modify provisioning files/Chef recipes as necessary.
- Ascertain
project/requirements/dev.txt
andproject/requirements/prod.txt
include any necessary Python packages. They will be installed during provisioning. - Run
vagrant up
- Wait a number of minutes while the VM loads and provisioning occurs.
- Run
vagrant ssh
- ???
- Profit!
- apt
- build-essential
- zsh
- openssl
- git
- python
- virtualenv
- pip
- postgresql (server & client)
- memcached
This project is released under the MIT License. Please see LICENSE
for more information.
This project is based off Julien Phalip's djangoproject.com fork (vagrant branch). It furthermore appropriates components from Rogelio Castillo's vagrant-postgrelsql.