diff options
| author | mo khan <mo@mokhan.ca> | 2014-08-23 08:30:45 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-08-23 08:30:45 -0600 |
| commit | a3fde7ec90f2a7fba934fdf3b81359afdd18f6a3 (patch) | |
| tree | 4e41d0f090ae6191a7b7463fedd50226a424af88 /lib | |
| parent | 889ffa699596edea5e3d49ffcce27ce5abd73170 (diff) | |
restart delayed jobs and unicorn after deployment.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/capistrano/tasks/delayed_job.rake | 4 | ||||
| -rw-r--r-- | lib/capistrano/tasks/unicorn.rake | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/capistrano/tasks/delayed_job.rake b/lib/capistrano/tasks/delayed_job.rake index d62f4b96..ffda9b6c 100644 --- a/lib/capistrano/tasks/delayed_job.rake +++ b/lib/capistrano/tasks/delayed_job.rake @@ -6,14 +6,12 @@ namespace :delayed_job do execute :sudo, "service delayed_job_#{fetch(:application)} #{command}" end end - #after "deploy:#{command}", "delayed_job:#{command}" - #after "deploy:finish", "delayed_job:restart" end desc "tail the delayed jobs logs on an app server (cap staging delayed_job:logs)" task :logs do on roles(:app) do - stream "tail -f #{fetch(:shared_path)}/log/delayed_job.log" + stream "tail -F #{fetch(:shared_path)}/log/delayed_job.log" end end end diff --git a/lib/capistrano/tasks/unicorn.rake b/lib/capistrano/tasks/unicorn.rake index a54643dd..caf05132 100644 --- a/lib/capistrano/tasks/unicorn.rake +++ b/lib/capistrano/tasks/unicorn.rake @@ -6,7 +6,6 @@ namespace :unicorn do execute "service unicorn_#{fetch(:application)} #{command}" end end - #after "deploy:finished", "unicorn:restart" end desc "tail the logs on an app server (cap staging unicorn:logs)" |
