Do it and then try in procfile
web: bundle exec unicorn_rails -p $ PORT -c config / unicorn.rb
In unicorn.rb
worker_processes 2 preload_app true timeout 30
@resque_pid = nil
before_fork do | server working | @resque_pid || = spawn ("runle exec rake environment resque: work QUEUE = *") end
after_fork do | server working | ActiveRecord :: Base.establish_connection end
source share