mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Que worker fork after passenger start #2557
This commit is contained in:
parent
8cb09ad4ec
commit
71ce6d2399
1 changed files with 8 additions and 0 deletions
|
@ -2,3 +2,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue