Deploying a Rails App via VPN

You will have to carry with me since I am not Ruby dev, but have inherited the Ruby system.

I need to deploy some changes to the application from my repository to the server. I was instructed to run cap deployand said that the script would get the latest code from my repository and deploy it to the server.

My problem is that I have to connect to the VPN server and the VPN client then blocks access to my local network, disconnecting the repository. So my question is: how can I change my own deploy.rbto instead deploy from my local machine? Or is there a better way.

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

thank

Dave

+3
source share
1 answer

The solution I used before adds:

set :deploy_via, :copy

However, it is better to learn more about this:

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

+1
source

Source: https://habr.com/ru/post/1737663/


All Articles