diff --git a/config/initializers/que.rb b/config/initializers/que.rb new file mode 100644 index 000000000..b9e5a68ab --- /dev/null +++ b/config/initializers/que.rb @@ -0,0 +1 @@ +Que.mode = :off diff --git a/config/unicorn.rb b/config/unicorn.rb index 780ecaf58..77533dd8f 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -1 +1,7 @@ worker_processes 2 + +after_fork do |server, worker| + ActiveRecord::Base.establish_connection + + Que.mode = :async +end