1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Don't hardcode :restart task in deploy cycle

Moving :restart into confing/deploy.rb example
Fixed #692
This commit is contained in:
Kir Shatrov 2013-10-23 16:18:56 +02:00
parent f056c0e4ec
commit 4e6523e1f5
3 changed files with 1 additions and 2 deletions

View file

@ -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.',

View file

@ -15,7 +15,6 @@ namespace :deploy do
task :publishing do
invoke 'deploy:symlink:release'
invoke 'deploy:restart'
end
task :finishing do

View file

@ -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