mirror of
https://github.com/internetee/registry.git
synced 2025-05-21 11:49:40 +02:00
12 lines
307 B
Ruby
12 lines
307 B
Ruby
# This file is used by Rack-based servers to start the application.
|
|
|
|
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
|