Lets take another try at a consistent single process mode handling
Revert "dont call settingslogic single process mode, use the hash accessor so it is not required"
This reverts commit 57de976396.
This commit is contained in:
parent
eb85cdab5b
commit
cecd6ca5a1
1 changed files with 2 additions and 2 deletions
|
|
@ -2,11 +2,11 @@ require 'resque'
|
|||
|
||||
Resque::Plugins::Timeout.timeout = 120
|
||||
|
||||
if !AppConfig[:single_process_mode] && AppConfig[:redis_url]
|
||||
if !AppConfig.single_process_mode? && AppConfig[:redis_url]
|
||||
Resque.redis = Redis.new(:host => AppConfig[:redis_url], :port => 6379)
|
||||
end
|
||||
|
||||
if AppConfig[:single_process_mode]
|
||||
if AppConfig.single_process_mode?
|
||||
if Rails.env == 'production'
|
||||
puts "WARNING: You are running Diaspora in production without Resque workers turned on. Please don't do this."
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue