VRFS-2643 - run eventmachine in it's own thread
This commit is contained in:
parent
2c8a4b8483
commit
d139966445
|
|
@ -11,7 +11,10 @@ def shutdown
|
|||
end
|
||||
|
||||
Resque.before_first_fork do
|
||||
JamWebEventMachine.start
|
||||
current = Thread.current
|
||||
Thread.new do
|
||||
JamWebEventMachine.run_em(current)
|
||||
end
|
||||
|
||||
#ActiveRecord::Base.establish_connection
|
||||
config = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue