Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sample local Heroku/Django development environment using foreman
port: 8000
procfile: Procfile-development
Running "foreman start" will run start a memcached instance, Django's runserver, watch for SASS/Compass changes, watch for Coffeescript changes.
Modify Procfile-development to fit your needs.
Currently you can't change what type of term signals get pushed to each process in foreman, so if you run run_gunicorn instead of runserver, it has problems quitting because it gets an incorrect signal.
web: python runserver "$PORT" --settings "$DJANGO_SETTINGS_MODULE"
memcached: memcached -m 64 -v
sass: compass --watch
coffeescript: coffee --watch --compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.