ruby – Capistrano 3在部署后不重新启动

前端之家收集整理的这篇文章主要介绍了ruby – Capistrano 3在部署后不重新启动前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我最近更新了我的 capistrano宝石到3.1.0版,从那时起,cap生产部署传递得很好,但目标部署:重新启动不被调用.

我的服务器部署在Amazon EC2上的Ubuntu 12.10上.

为什么会这样?

解决方法

默认情况下,Capistrano 3不再运行该任务,因为许多应用服务器不需要它.将其添加到您的config / deploy.rb中:
after 'deploy:publishing','deploy:restart'

release notes

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 (eg after
    'deploy:publishing','deploy:restart'
    ).

    Please,check 07001 for more information. (@kirs)

原文链接:https://www.f2er.com/ruby/274125.html

猜你在找的Ruby相关文章