merge
This commit is contained in:
1 parent
b0cdcbecca
commit
962bae9a82
12 files changed
+296
-441
No files matched your search
@@ -3,7 +3,7 @@ require 'resque_scheduler'
|
||||
# require 'yaml'
|
||||
|
||||
Resque.redis = 'localhost:6379'
|
||||
#Resque.redis.namespace = "resque:SchedulerExample"
|
||||
Resque.redis.namespace = "resque:nccu_stage"
|
||||
|
||||
# If you want to be able to dynamically change the schedule,
|
||||
# uncomment this line. A dynamic schedule can be updated via the
|
||||
|
||||
+2
-2
@@ -4,8 +4,8 @@ defaults: &defaults
|
||||
|
||||
development:
|
||||
<<: *defaults
|
||||
host: '127.0.0.1'
|
||||
port: 8001
|
||||
host: '140.119.166.23'
|
||||
port: 389
|
||||
production:
|
||||
<<: *defaults
|
||||
host: '140.119.166.23'
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@ defaults: &defaults
|
||||
host: localhost
|
||||
# slaves:
|
||||
# - host: slave1.local
|
||||
# port: 27018
|
||||
port: 37017
|
||||
# - host: slave2.local
|
||||
# port: 27019
|
||||
|
||||
@@ -12,7 +12,7 @@ development:
|
||||
|
||||
test:
|
||||
<<: *defaults
|
||||
database: prototype_r4_test
|
||||
database: prototype_r4_ldap0229
|
||||
|
||||
# set these environment variables on your prod server
|
||||
production:
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
#developer pls change here
|
||||
rails_root = "/home/nccu/NCCU/" #keep this blank when development
|
||||
rails_root = "/home/nccu/stage/NCCU" #keep this blank when development
|
||||
|
||||
development_uid = 'kaito' #when dev
|
||||
development_gid = 'staff' #when dev
|
||||
@@ -16,7 +16,7 @@ num_workers.times do |num|
|
||||
|
||||
w.dir = rails_root
|
||||
w.name = "resque-#{num}"
|
||||
w.group = 'resque'
|
||||
w.group = 'resque-stage'
|
||||
|
||||
w.interval = 30.seconds
|
||||
w.env = {"QUEUE"=>"critical,high,low", "RAILS_ENV"=>rails_env}
|
||||
@@ -25,7 +25,7 @@ num_workers.times do |num|
|
||||
w.uid = (rails_env == 'production' )? "root" : development_uid
|
||||
w.gid = (rails_env == 'production' )? "root" : development_gid
|
||||
|
||||
w.log = (rails_env == 'production' )? "/var/log/#{w.name}.log":"#{rails_root}/log/#{w.name}.log"
|
||||
w.log = (rails_env == 'production' )? "/var/log/#{w.name}-stage.log":"#{rails_root}/log/#{w.name}.log"
|
||||
|
||||
# restart if memory gets too high
|
||||
w.transition(:up, :restart) do |on|
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
production:
|
||||
solr:
|
||||
hostname: localhost
|
||||
port: 8983
|
||||
port: 8982
|
||||
log_level: WARNING
|
||||
|
||||
development:
|
||||
@@ -14,4 +14,4 @@ test:
|
||||
solr:
|
||||
hostname: localhost
|
||||
port: 8981
|
||||
log_level: WARNING
|
||||
log_level: WARNING
|
||||
Reference in new issue
Block a user