mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #730 from kirs/no-restart-task-hardcoded
Don't hardcode :restart task in deploy cycle
This commit is contained in:
commit
3ace303dd9
3 changed files with 1 additions and 2 deletions
|
@ -7,7 +7,6 @@ en = {
|
||||||
start: 'Start',
|
start: 'Start',
|
||||||
update: 'Update',
|
update: 'Update',
|
||||||
finalize: 'Finalise',
|
finalize: 'Finalise',
|
||||||
restart: 'Restart',
|
|
||||||
finishing: 'Finishing',
|
finishing: 'Finishing',
|
||||||
finished: 'Finished',
|
finished: 'Finished',
|
||||||
stage_not_set: 'Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.',
|
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
|
task :publishing do
|
||||||
invoke 'deploy:symlink:release'
|
invoke 'deploy:symlink:release'
|
||||||
invoke 'deploy:restart'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
task :finishing do
|
task :finishing do
|
||||||
|
|
|
@ -17,6 +17,7 @@ set :repo_url, 'git@example.com:me/my_repo.git'
|
||||||
# set :keep_releases, 5
|
# set :keep_releases, 5
|
||||||
|
|
||||||
namespace :deploy do
|
namespace :deploy do
|
||||||
|
after :publishing, :restart
|
||||||
|
|
||||||
desc 'Restart application'
|
desc 'Restart application'
|
||||||
task :restart do
|
task :restart do
|
||||||
|
|
Loading…
Reference in a new issue