mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 09:27:19 +02:00
Turn automatic que temp off #2724
This commit is contained in:
parent
b4496da4be
commit
9562d2f30d
1 changed files with 8 additions and 7 deletions
15
config.ru
15
config.ru
|
@ -3,10 +3,11 @@
|
|||
require ::File.expand_path('../config/environment', __FILE__)
|
||||
run Rails.application
|
||||
|
||||
if defined?(PhusionPassenger)
|
||||
PhusionPassenger.on_event(:starting_worker_process) do |forked|
|
||||
if forked
|
||||
Que.mode = :async
|
||||
end
|
||||
end
|
||||
end
|
||||
# turn automatic que temp off
|
||||
# if defined?(PhusionPassenger)
|
||||
# PhusionPassenger.on_event(:starting_worker_process) do |forked|
|
||||
# if forked
|
||||
# Que.mode = :async
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue