VRFS-2643 - run eventmachine in it's own thread

This commit is contained in:
Seth Call 2015-01-11 16:39:29 -06:00
parent 2c8a4b8483
commit d139966445
1 changed files with 4 additions and 1 deletions

View File

@ -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 = {