简体   繁体   中英

What repository should be set in set :repo_url “” in deploy.rb for capistrano?

According to this description I have to set a repository in the deploy.rb file.

set :application, "my_app_name"
set :repo_url, "git@example.com:me/my_repo.git"

I assume this is the source code of my app, is that correct? At the moment I have my app repository on a cloud9 server. To deploy the app I type cap production deploy on the development system. So, do I have to put in the url and path of the cloud9 server? That seems weird, because I deploy from that server. Or is this file transferred to the production system that then pulls the data from the development environment? Does this mean, I need a passwordless ssh connection from a cloud 9 server to the production server or vice versa? Or do I need to push my data to a third system?

According to the docs , repo_url must be set appropriately and the deployed server must be able to connect to it. The reason is that by defaut, capistrano will try to pull code from the repo to the deployed server instead of pushing your code directly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM