我最近更新了我的
capistrano宝石到3.1.0版,从那时起,cap生产部署传递得很好,但目标部署:重新启动不被调用.
我的服务器部署在Amazon EC2上的Ubuntu 12.10上.
为什么会这样?
解决方法
默认情况下,Capistrano 3不再运行该任务,因为许多应用服务器不需要它.将其添加到您的config / deploy.rb中:
after 'deploy:publishing','deploy:restart'
Breaking changes:
deploy:restart
task is no longer run by default.
From this version,developers who restart the app on each deploy need to declare it in their deploy flow (egafter
).
'deploy:publishing','deploy:restart'Please,check 07001 for more information. (@kirs)