From 4e6523e1f50707499cf75eb53dce37a89528a9b0 Mon Sep 17 00:00:00 2001 From: Kir Shatrov Date: Wed, 23 Oct 2013 16:18:56 +0200 Subject: [PATCH] Don't hardcode :restart task in deploy cycle Moving :restart into confing/deploy.rb example Fixed #692 --- lib/capistrano/i18n.rb | 1 - lib/capistrano/tasks/deploy.rake | 1 - lib/capistrano/templates/deploy.rb.erb | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/capistrano/i18n.rb b/lib/capistrano/i18n.rb index 781ea2d9..e5dec4c5 100644 --- a/lib/capistrano/i18n.rb +++ b/lib/capistrano/i18n.rb @@ -7,7 +7,6 @@ en = { start: 'Start', update: 'Update', finalize: 'Finalise', - restart: 'Restart', finishing: 'Finishing', finished: 'Finished', stage_not_set: 'Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.', diff --git a/lib/capistrano/tasks/deploy.rake b/lib/capistrano/tasks/deploy.rake index 101e5662..e0746f50 100644 --- a/lib/capistrano/tasks/deploy.rake +++ b/lib/capistrano/tasks/deploy.rake @@ -15,7 +15,6 @@ namespace :deploy do task :publishing do invoke 'deploy:symlink:release' - invoke 'deploy:restart' end task :finishing do diff --git a/lib/capistrano/templates/deploy.rb.erb b/lib/capistrano/templates/deploy.rb.erb index 461ca74c..6f697d58 100644 --- a/lib/capistrano/templates/deploy.rb.erb +++ b/lib/capistrano/templates/deploy.rb.erb @@ -17,6 +17,7 @@ set :repo_url, 'git@example.com:me/my_repo.git' # set :keep_releases, 5 namespace :deploy do + after :publishing, :restart desc 'Restart application' task :restart do