jva*_*tic 5 capistrano ruby-on-rails
我需要通过capistrano将Rails应用程序部署到远程Intranet上的服务器.例如,如果我要ssh到目标服务器,它看起来像:
localhost$ ssh server1
server1$ ssh server2
Run Code Online (Sandbox Code Playgroud)
这是最好的方法吗?
提前致谢.
Capistrano让这很容易.只是用
set :gateway, "user@server1:port"
Run Code Online (Sandbox Code Playgroud)
在你的config/deploy.rb中.