diff options
author | Jonne Haß <me@jhass.eu> | 2014-11-30 23:09:43 +0300 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2014-12-01 10:06:07 +0300 |
commit | a580171e3239a298f8edc7f500a7041ef3fa4171 (patch) | |
tree | 52ca228372fe09496aeed1cd07a7533902fe1732 /config/unicorn.rb | |
parent | 4cadc2d51c2f61730fe18148532f550b1d64a02c (diff) |
Replace spork with spring, update & use binstubs
Spring is the recommended application preloader for rails
Diffstat (limited to 'config/unicorn.rb')
-rw-r--r-- | config/unicorn.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/unicorn.rb b/config/unicorn.rb index 52963a762..719c357c2 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -29,9 +29,9 @@ before_fork do |server, worker| unless AppConfig.single_process_mode? Sidekiq.redis {|redis| redis.client.disconnect } end - + if AppConfig.server.embed_sidekiq_worker? - @sidekiq_pid ||= spawn('bundle exec sidekiq') + @sidekiq_pid ||= spawn('bin/bundle exec sidekiq') end old_pid = '/var/run/diaspora/diaspora.pid.oldbin' |