diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-05 06:54:31 -0800 | 
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-05 06:54:31 -0800 | 
| commit | d5663e148fdf8d1c767479e62c86c7a2b4db654e (patch) | |
| tree | 93f440d0c61fed3b1464f531b0da8d77bdbb8247 | |
| parent | 0c06b7fe20594c1f37bc7bee4ba12f22d2aaa46f (diff) | |
| parent | 7225c06934993e1c1deccf3adfc2ed770f69e0db (diff) | |
| download | gitlab-ce-d5663e148fdf8d1c767479e62c86c7a2b4db654e.tar.gz | |
Merge pull request #2870 from mikew/relative-url-root-default
default gitlab.relative_url_root to ENV['RAILS_RELATIVE_URL_ROOT']
| -rw-r--r-- | config/initializers/1_settings.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index a656b02171f..ac35eef4218 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -52,7 +52,7 @@ Settings.gitlab['default_projects_limit'] ||=  10  Settings.gitlab['host']       ||= 'localhost'  Settings.gitlab['https']        = false if Settings.gitlab['https'].nil?  Settings.gitlab['port']       ||= Settings.gitlab.https ? 443 : 80 -Settings.gitlab['relative_url_root'] ||= '' +Settings.gitlab['relative_url_root'] ||= ENV['RAILS_RELATIVE_URL_ROOT'] || ''  Settings.gitlab['protocol']   ||= Settings.gitlab.https ? "https" : "http"  Settings.gitlab['email_from'] ||= "gitlab@#{Settings.gitlab.host}"  Settings.gitlab['support_email']  ||= Settings.gitlab.email_from | 
