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:
parent
f056c0e4ec
commit
4e6523e1f5
3 changed files with 1 additions and 2 deletions
|
@ -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.',
|
||||
|
|
|
@ -15,7 +15,6 @@ namespace :deploy do
|
|||
|
||||
task :publishing do
|
||||
invoke 'deploy:symlink:release'
|
||||
invoke 'deploy:restart'
|
||||
end
|
||||
|
||||
task :finishing do
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue