使用 Capistrano 进行部署,无需直接访问
我想使用 Capistrano 来部署我们的 Web 应用程序,但我们无法直接访问应用程序服务器。
我们现在登录到管理服务器并从那里运行部署脚本。我们的开发人员计算机无法访问应用程序服务器:
+-------------+ +--------------+ +--------------------+
| Dev machine +---+ Admin server +---+ Application server |
+-------------+ +--------------+ +--------------------+
如果我理解正确的话,Capistrano 只是使用 SSH 来运行远程脚本。有没有办法告诉它“代理”到应用程序服务器?
I would like to use Capistrano to deploy our web application but we don't have direct access to the application server.
We now log in to the admin server and run the deploy script from there. The application server is not reachable from our developers machines:
+-------------+ +--------------+ +--------------------+
| Dev machine +---+ Admin server +---+ Application server |
+-------------+ +--------------+ +--------------------+
If I understand correctly Capistrano just uses SSH to run remote scripts. Is there a way to tell it to "proxy" through to the application server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以从您的开发机器运行 cap,通过管理服务器进行隧道传输。您只需将管理服务器设置为“网关”,并确保您的开发 ssh 密钥位于两台计算机上。
请参阅 http://blog.codefront.net /2008/05/15/deploying-with-capistrano-via-a-gateway/ 了解更多选项。
Yes, you can run cap from your Dev machine, tunneled through the Admin server. You just have to set Admin server as a "gateway", and ensure your dev ssh key is on both machines.
See http://blog.codefront.net/2008/05/15/deploying-with-capistrano-via-a-gateway/ for more options.