Last active
August 29, 2015 14:01
-
-
Save BigglesZX/7e8d762bd194905f3c42 to your computer and use it in GitHub Desktop.
Standard config + addons for Heroku Django apps
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
#!/bin/bash | |
heroku addons:add heroku-postgresql:dev | |
heroku addons:add newrelic:stark | |
heroku addons:add papertrail:choklad | |
heroku addons:add pgbackups:auto-month | |
heroku addons:add scheduler:standard | |
heroku addons:add sendgrid:starter | |
heroku addons:add sentry:developer | |
heroku config:add DJANGO_SETTINGS_MODULE=appname.config.heroku.settings | |
heroku config:add PYTHONPATH=/app:/app/appname | |
heroku config:set ERROR_PAGE_URL=http://s3.amazonaws.com/foobar_static_pages/error.html | |
heroku config:set MAINTENANCE_PAGE_URL=http://s3.amazonaws.com/foobar_static_pages/maintenance.html | |
heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-python | |
heroku config:set DISABLE_COLLECTSTATIC=1 | |
heroku domains:add www.appdomain.com | |
heroku domains:add appdomain.com |
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: django-admin.py collectstatic --noinput; newrelic-admin run-program gunicorn appname.wsgi:application -b "0.0.0.0:$PORT" -w 4 |
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
python-2.7.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment