Skip to content

Commit 0f8c1bf

Browse files
author
Austin Schneider
committed
updated docs
1 parent 36a9654 commit 0f8c1bf

File tree

6 files changed

+20
-22
lines changed

6 files changed

+20
-22
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.rvmrc
44
config/database.yml
55
config/resque_config.yml
6+
config/redis_config.yml
67
log/*.log
78
tmp/
89
.sass-cache/

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ Pinger is a good open source alternative for website monitoring. Set up an alert
1010

1111
## Running on Heroku
1212

13+
* Create an app on Heroku on the cedar stack
14+
* Setup Redis
15+
* Add the Redis To Go add-on
16+
* In the config directory, copy `redis_config.yml.example` to `redis_config.yml`
17+
* Fill in the values provided by the add-on
18+
* Setup Resque
19+
* In the config directory, copy `resque_config.yml.example` to `resque_config.yml`
20+
* The `web_user` and `web_pass` is the login credentials for viewing your queues at the http://yourapp.herokuapp.com/resque
1321

1422
## Technologies
1523

config/initializers/resque.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
require 'resque_scheduler'
22

33
Resque.redis = Redis.new(
4-
host: CONFIG[:resque][:host],
5-
port: CONFIG[:resque][:port],
6-
password: CONFIG[:resque][:password],
4+
host: CONFIG[:redis][:host],
5+
port: CONFIG[:redis][:port],
6+
password: CONFIG[:redis][:password],
77
thread_safe: true
88
)
99

config/redis_config.yml.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
production:
2+
host: CHANGE
3+
port: CHANGE
4+
username: CHANGE
5+
password: CHANGE

config/resque_config.yml.example

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
development:
2-
host: 'localhost'
3-
port: 6379
4-
web_user: x
5-
web_pass: x
6-
7-
test:
8-
host: 'localhost'
9-
port: 6379
10-
web_user: x
11-
web_pass: x
12-
131
production:
14-
host: CHANGEME
15-
username: CHANGEME
16-
password: CHANGEME
17-
port: CHANGEME
18-
web_user: CHANGEME
19-
web_pass: CHANGEME
2+
web_user: CHANGE
3+
web_pass: CHANGE

lib/test_support.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def start_redis
99
redis_options = {
1010
"daemonize" => 'yes',
1111
"pidfile" => REDIS_PID,
12-
"port" => CONFIG[:resque][:port],
12+
"port" => CONFIG[:redis][:port],
1313
"timeout" => 300,
1414
"save 900" => 1,
1515
"save 300" => 1,

0 commit comments

Comments
 (0)