From f532072c49af8bb0522b9b800317cff7f5d19900 Mon Sep 17 00:00:00 2001 From: MarkMT Date: Thu, 25 Feb 2016 21:51:37 -0600 Subject: [PATCH 1/2] Add hint for non-standard ssh port to remote repo When accessing a self-hosted repository on a machine other than the deployment target, it's not uncommon as a security measure to use a port other than 22. The example added shows how to configure this. --- documentation/getting-started/configuration/index.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/getting-started/configuration/index.markdown b/documentation/getting-started/configuration/index.markdown index 7efaae62..8f3315c4 100644 --- a/documentation/getting-started/configuration/index.markdown +++ b/documentation/getting-started/configuration/index.markdown @@ -65,7 +65,9 @@ The following variables are settable: * `:repo_url` * URL to the repository. * Must be a valid URL for the used SCM. - * Hint: when using :svn and branches, declare the repo_url like this: `set :repo_url, -> { "svn://myhost/myrepo/#{fetch(:branch)}" }` + * Example: `set :repo_url, 'git@example.com:me/my_repo.git'` for a git repo located in /home/git/me + * Hint #1: when using :svn and branches, declare the repo_url like this: `set :repo_url, -> { "svn://myhost/myrepo/#{fetch(:branch)}" }` + * Hint #2: 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'` * `:branch` * **default:** `'master'` From f9ad4481742f9c97d3789d379763f429990338db Mon Sep 17 00:00:00 2001 From: MarkMT Date: Fri, 26 Feb 2016 13:44:59 -0600 Subject: [PATCH 2/2] Reorder :repo_url configuration examples --- documentation/getting-started/configuration/index.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/getting-started/configuration/index.markdown b/documentation/getting-started/configuration/index.markdown index 8f3315c4..80567585 100644 --- a/documentation/getting-started/configuration/index.markdown +++ b/documentation/getting-started/configuration/index.markdown @@ -66,8 +66,8 @@ The following variables are settable: * URL to the repository. * Must be a valid URL for the used SCM. * Example: `set :repo_url, 'git@example.com:me/my_repo.git'` for a git repo located in /home/git/me - * Hint #1: when using :svn and branches, declare the repo_url like this: `set :repo_url, -> { "svn://myhost/myrepo/#{fetch(:branch)}" }` - * Hint #2: 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 #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)}" }` * `:branch` * **default:** `'master'`