Enable que automatically in dev mode #2557

This commit is contained in:
Priit Tark 2015-06-15 17:13:30 +03:00
parent 64d8009446
commit a6e6f8293e
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1 @@
Que.mode = :off

View file

@ -1 +1,7 @@
worker_processes 2
after_fork do |server, worker|
ActiveRecord::Base.establish_connection
Que.mode = :async
end