File tree Expand file tree Collapse file tree 6 files changed +20
-22
lines changed Expand file tree Collapse file tree 6 files changed +20
-22
lines changed Original file line number Diff line number Diff line change 3
3
.rvmrc
4
4
config /database.yml
5
5
config /resque_config.yml
6
+ config /redis_config.yml
6
7
log /* .log
7
8
tmp /
8
9
.sass-cache /
Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ Pinger is a good open source alternative for website monitoring. Set up an alert
10
10
11
11
## Running on Heroku
12
12
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
13
21
14
22
## Technologies
15
23
Original file line number Diff line number Diff line change 1
1
require 'resque_scheduler'
2
2
3
3
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 ] ,
7
7
thread_safe : true
8
8
)
9
9
Original file line number Diff line number Diff line change
1
+ production:
2
+ host: CHANGE
3
+ port: CHANGE
4
+ username: CHANGE
5
+ password: CHANGE
Original file line number Diff line number Diff line change 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
-
13
1
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
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def start_redis
9
9
redis_options = {
10
10
"daemonize" => 'yes' ,
11
11
"pidfile" => REDIS_PID ,
12
- "port" => CONFIG [ :resque ] [ :port ] ,
12
+ "port" => CONFIG [ :redis ] [ :port ] ,
13
13
"timeout" => 300 ,
14
14
"save 900" => 1 ,
15
15
"save 300" => 1 ,
You can’t perform that action at this time.
0 commit comments