Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Secure Redis via SSL
Browse files Browse the repository at this point in the history
This also adds the use of the Heroku Multi Buildpack which installs multiple buildpacks as defined in .buildpacks (in order)
  • Loading branch information
jezdez authored and maurodoglio committed Oct 10, 2016
1 parent f20d536 commit 4f25b90
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .buildpacks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/heroku/heroku-buildpack-redis.git
https://github.com/heroku/heroku-buildpack-python.git
https://github.com/heroku/heroku-buildpack-addon-wait.git
6 changes: 3 additions & 3 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
web: newrelic-admin run-program gunicorn atmo.wsgi:application --workers 4 --log-file -
worker: newrelic-admin run-program python manage.py rqworker --worker-class=rq.SimpleWorker default
web: bin/start-stunnel newrelic-admin run-program gunicorn atmo.wsgi:application --workers 4 --log-file -
worker: bin/start-stunnel newrelic-admin run-program python manage.py rqworker --worker-class=rq.SimpleWorker default
# django-rq doesn't support rqscheduler retry mode yet
# so we need to use the original startup script
scheduler: newrelic-admin run-program rqscheduler --url=$REDIS_URL
scheduler: bin/start-stunnel newrelic-admin run-program rqscheduler --url=$REDIS_URL

release: ./bin/pre_deploy
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ Heroku Setup
1. `heroku create`
2. `heroku config:set DEBUG=False ALLOWED_HOSTS=<foobar>.herokuapp.com, SECRET_KEY=something_secret`
`DATABASE_URL` gets populated by heroku once you setup a database.
3. push to GitHub with `git push origin`
3. Run `heroku buildpacks:set https://github.com/heroku/heroku-buildpack-multi.git` since we're using multiple Heroku buildpacks (see `.buildpacks`)
4. Push branch to GitHub with `git push origin`, Heroku will auto-deploy to staging

NewRelic Monitoring
-------------------
Expand Down

0 comments on commit 4f25b90

Please sign in to comment.