summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-12-11 17:27:01 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-12-11 17:27:01 +0100
commit58e64dd8d30eac98dbc07760f59574533f17fa9e (patch)
tree563ec5bb8f0b42661ef888bf1c4828fbca0931c7
parentff84530c0aa72d2a035ce64749687e559a641600 (diff)
downloadgitlab-shell-remove-trailing-slashes.tar.gz
Be more consistent about default gitlab_urlremove-trailing-slashes
-rw-r--r--config.yml.example2
-rw-r--r--lib/gitlab_config.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.yml.example b/config.yml.example
index 8d19a97..a7e8d8a 100644
--- a/config.yml.example
+++ b/config.yml.example
@@ -7,7 +7,7 @@
user: git
# Url to gitlab instance. Used for api calls.
-# Default: http://localhost
+# Default: http://localhost:8080
# You only have to change the default if you have configured Unicorn
# to listen on a custom port, or if you have configured Unicorn to
# only listen on a Unix domain socket. For Unix domain sockets use
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb
index a8d03f3..831f0e3 100644
--- a/lib/gitlab_config.rb
+++ b/lib/gitlab_config.rb
@@ -24,7 +24,7 @@ class GitlabConfig
end
def gitlab_url
- (@config['gitlab_url'] ||= "http://localhost").sub(%r{/*$}, '')
+ (@config['gitlab_url'] ||= "http://localhost:8080").sub(%r{/*$}, '')
end
def http_settings