Clarify warning shown when single_process_mode used in production
This commit is contained in:
parent
a0e69b4374
commit
37b6045c04
1 changed files with 3 additions and 1 deletions
|
|
@ -16,7 +16,9 @@ end
|
||||||
# Single process-mode hooks using Resque.inline
|
# Single process-mode hooks using Resque.inline
|
||||||
if AppConfig.single_process_mode?
|
if AppConfig.single_process_mode?
|
||||||
if Rails.env == 'production'
|
if Rails.env == 'production'
|
||||||
puts "WARNING: You are running Diaspora in production without Resque workers turned on. Please don't do this."
|
puts "WARNING: You are running Diaspora in production without Resque"
|
||||||
|
puts " workers turned on. Please set single_process_mode to false in"
|
||||||
|
puts " config/application.yml."
|
||||||
end
|
end
|
||||||
Resque.inline = true
|
Resque.inline = true
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue