Capistrano 全局角色文件?
请原谅我是 capistrano 的新手,
我们有多个站点想要使用 capistrano 进行部署。每个站点都部署到同一组服务器。我们如何使用 1 个文件来保存角色并告诉每个站点 capfile 使用全局角色文件,而不是向每个站点的每个 capfile 添加相同的服务器集?
forgive me i'm new to capistrano
we have multiple sites we want to deploy with capistrano. Each site is deployed to the same set of servers. Instead of adding the same set of servers to each capfile for each site how would we have 1 file to holds roles and tell each site capfile to use the global roles file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用多级扩展
https://github.com/capistrano/capistrano/wiki/2.x -多级扩展
You can use Multistage extension
https://github.com/capistrano/capistrano/wiki/2.x-Multistage-Extension