Starting or restarting Unicorn with Capistrano 3.x

前端 未结 5 1085
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 09:31

I\'m trying to start or restart Unicorn when I do cap production deploy with Capistrano 3.0.1. I have some examples that I got working with Capistrano 2.x using so

5条回答
  •  半阙折子戏
    2021-02-01 09:41

    You can try to use native capistrano way as written here:

    If preload_app:true and you need capistrano to cleanup your oldbin pid use:

    after 'deploy:publishing', 'deploy:restart'
    namespace :deploy do
      task :restart do
        invoke 'unicorn:legacy_restart'
      end
    end
    

提交回复
热议问题