force unicorn to terminate before restarting

This commit is contained in:
r888888888
2016-08-02 21:08:41 -07:00
parent f5a031c831
commit d90fd6c46a
2 changed files with 18 additions and 1 deletions

View File

@@ -13,4 +13,5 @@ require 'capistrano3/unicorn'
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
after "deploy:published", "unicorn:reload"
after "deploy:published", "unicorn:terminate"
after "deploy:published", "unicorn:start"