-
-
Save allanlei/1623086 to your computer and use it in GitHub Desktop.
Sample local Heroku/Django development environment using foreman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATABASE_URL=postgres://USERNAME:[email protected]/DATABASE | |
MEMCACHE_SERVERS=127.0.0.1:11211 | |
DJANGO_SETTINGS_MODULE=settings.development.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port: 8000 | |
procfile: Procfile-development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: python manage.py runserver "0.0.0.0:$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