Skip to content

Commit

Permalink
Merge pull request #19 from dthtvwls/master
Browse files Browse the repository at this point in the history
Update heroku instructions to accurately reflect current app behavior
  • Loading branch information
johnsheehan committed Jul 16, 2015
2 parents 2dbd04d + 32fff17 commit 0e36a0c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,13 @@ From the project directory, create a Heroku application:

`$ heroku create`

Add Heroku's addon for redistogo
Add Heroku's redis addon:

`$ heroku addons:add redistogo:nano --app {app_name}`
`$ heroku addons:add heroku-redis`

Find your redistogo connection details
Set an environment variable to indicate production:

`$ heroku config --app {app_name} | grep REDISTOGO_URL`

Open `requestbin/config.py` and locate variables `REDIS_URL` and `REDIS_PORT`. Edit them with the connection details you got in the previous step:

```python
REDIS_URL = "REDISTOGO_URL"
REDIS_HOST = "localhost"
REDIS_PORT = REDISTOGO_PORT
```
`$ heroku config:set REALM=prod`

Now just deploy via git:

Expand Down

0 comments on commit 0e36a0c

Please sign in to comment.