Skip to content

Instantly share code, notes, and snippets.

@BigglesZX
Last active August 29, 2015 14:01
Show Gist options
  • Save BigglesZX/7e8d762bd194905f3c42 to your computer and use it in GitHub Desktop.
Save BigglesZX/7e8d762bd194905f3c42 to your computer and use it in GitHub Desktop.
Standard config + addons for Heroku Django apps
#!/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
web: django-admin.py collectstatic --noinput; newrelic-admin run-program gunicorn appname.wsgi:application -b "0.0.0.0:$PORT" -w 4
python-2.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment