mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Enable que automatically in dev mode #2557
This commit is contained in:
parent
64d8009446
commit
a6e6f8293e
2 changed files with 7 additions and 0 deletions
1
config/initializers/que.rb
Normal file
1
config/initializers/que.rb
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Que.mode = :off
|
|
@ -1 +1,7 @@
|
||||||
worker_processes 2
|
worker_processes 2
|
||||||
|
|
||||||
|
after_fork do |server, worker|
|
||||||
|
ActiveRecord::Base.establish_connection
|
||||||
|
|
||||||
|
Que.mode = :async
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue