Capistrano - 如何在部署时不重启
Capistrano - How to not restart on deploy
我当前的 Capistrano 版本是 2.15.5
每当我 运行 deploy
任务时,它会自动触发 restart
。
这符合 doc。
------------------------------------------------------------
cap deploy
------------------------------------------------------------
Deploys your project. This calls both `update' and `restart'.
就我而言,我想手动 运行 restart
任务。我不想 deploy
到 运行 restart
.
所以我的问题是:
Is there a way to override this behavior and not trigger the restart
task in deploy.
正如文档所说,deploy
任务只是执行 update
,然后执行 restart
。如果您不想重新启动,则只需调用更新任务(即 cap update
)而不是部署任务。
如果您在针对部署注册挂钩之前或之后,将不再调用它们。
我当前的 Capistrano 版本是 2.15.5
每当我 运行 deploy
任务时,它会自动触发 restart
。
这符合 doc。
------------------------------------------------------------
cap deploy
------------------------------------------------------------
Deploys your project. This calls both `update' and `restart'.
就我而言,我想手动 运行 restart
任务。我不想 deploy
到 运行 restart
.
所以我的问题是:
Is there a way to override this behavior and not trigger the
restart
task in deploy.
正如文档所说,deploy
任务只是执行 update
,然后执行 restart
。如果您不想重新启动,则只需调用更新任务(即 cap update
)而不是部署任务。
如果您在针对部署注册挂钩之前或之后,将不再调用它们。