From 3ad81900c06fe2142a14670456e8153125f3c952 Mon Sep 17 00:00:00 2001 From: Mingan Date: Sat, 26 Nov 2016 22:21:42 +0100 Subject: [PATCH] Add a warning about changing :repo_url --- docs/documentation/getting-started/configuration/index.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/documentation/getting-started/configuration/index.markdown b/docs/documentation/getting-started/configuration/index.markdown index 3b306431..16e2dc31 100644 --- a/docs/documentation/getting-started/configuration/index.markdown +++ b/docs/documentation/getting-started/configuration/index.markdown @@ -68,6 +68,7 @@ The following variables are settable: * Example: `set :repo_url, 'git@example.com:me/my_repo.git'` for a git repo located in /home/git/me * Hint #1: to access a repo on a machine using a non-standard ssh port: `set :repo_url, 'ssh://git@example.com:30000/~/me/my_repo.git'` * Hint #2: when using :svn and branches, declare the repo_url like this: `set :repo_url, -> { "svn://myhost/myrepo/#{fetch(:branch)}" }` + * Warning: if you move your repository to a new URL and change this variable, already deployed remote servers won't reflect this change automatically, you have to manually re-configure the repository on the remote servers (in path determined by `:repo_path`) or delete it and let Capistrano recreate it on the next deploy using the updated URL. * `:branch` * **default:** `'master'`