开发者

Deploying Rails app over VPN

开发者 https://www.devze.com 2022-12-23 05:18 出处:网络
You\'ll have to bear with me as I\'m not a Ruby dev, but have inherited a Ruby system. I need to deploy some changes to the app from my repository to the server.I\'ve been instructed to run cap deplo

You'll have to bear with me as I'm not a Ruby dev, but have inherited a Ruby system.

I need to deploy some changes to the app from my repository to the server. I've been instructed to run cap deploy and told that that script will get the latest code from my repository and deploy it to the server.

My problem is that I have to VPN to get to the production server and the VPN client then blocks access to my local network, cutting off the repository. So my question is, how can I change my deploy.rb so that开发者_运维问答 I can deploy from my local machine instead? Or is there a better way.

If you need to see the deploy.rb, please let me know.

Thanks

Dave


The solution I've used before means adding:

set :deploy_via, :copy

However, it may be better to read more about this at:

http://www.capify.org/index.php/Understanding_Deployment_Strategies#Deploy_Strategy_:copy

0

精彩评论

暂无评论...
验证码 换一张
取 消