forked from jpf/requestbin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vitor Monteiro
committed
Jul 10, 2015
1 parent
d3f41e3
commit 8fbd39c
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,9 +28,13 @@ Find your redistogo connection details | |
|
||
`$ heroku config --app {app_name} | grep REDISTOGO_URL` | ||
|
||
Modify line 19 of config/heroku.conf.py on redis details | ||
Open `requestbin/config.py` and locate variables `REDIS_URL` and `REDIS_PORT`. Edit them with the connection details you got in the previous step: | ||
|
||
`redis_url = urlparse.urlparse(os.environ.get("REDIS_URL", "redis://REDISTOGO_URL:REDISTOGO_PORT/0"))` | ||
```python | ||
REDIS_URL = "REDISTOGO_URL" | ||
REDIS_HOST = "localhost" | ||
REDIS_PORT = REDISTOGO_PORT | ||
``` | ||
|
||
Now just deploy via git: | ||
|
||
|
@@ -42,4 +46,4 @@ It will push to Heroku and give you a URL that your own private RequestBin will | |
Contributors | ||
------------ | ||
* Barry Carlyon <[email protected]> | ||
* Jeff Lindsay <[email protected]> | ||
* Jeff Lindsay <[email protected]> |