diff --git a/config.ru b/config.ru index 5bc2a619e..4112838a0 100644 --- a/config.ru +++ b/config.ru @@ -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