templates/sidekiq/config/rubber/deploy-sidekiq.rb in rubber-2.2.1 vs templates/sidekiq/config/rubber/deploy-sidekiq.rb in rubber-2.2.2
- old
+ new
@@ -19,10 +19,10 @@
rsudo "cd #{current_path} && if [ -f #{current_path}/tmp/pids/sidekiq.pid ]; then bundle exec sidekiqctl stop #{current_path}/tmp/pids/sidekiq.pid 60 ; fi", :as => rubber_env.app_user
end
desc "Start sidekiq"
task :start, :roles => :sidekiq do
- rsudo "cd #{current_path} ; nohup bundle exec sidekiq -e #{Rubber.env} -C #{current_path}/config/sidekiq.yml -P #{current_path}/tmp/pids/sidekiq.pid >> #{current_path}/log/sidekiq.log 2>&1 &", :pty => false, :as => rubber_env.app_user
+ rsudo "cd #{current_path} ; nohup bundle exec sidekiq -e #{Rubber.env} -C #{current_path}/config/sidekiq.yml -P #{current_path}/tmp/pids/sidekiq.pid >> #{current_path}/log/sidekiq.log 2>&1 &", :as => rubber_env.app_user
sleep 45 # Give the workers some time to start up before moving on so monit doesn't try to start as well.
end
desc "Restart sidekiq"
task :restart, :roles => :sidekiq do