From 58e64dd8d30eac98dbc07760f59574533f17fa9e Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 11 Dec 2015 17:27:01 +0100 Subject: Be more consistent about default gitlab_url --- config.yml.example | 2 +- lib/gitlab_config.rb | 2 +- 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 -- cgit v1.2.1