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 99d05071..8312955e 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