diff --git a/config/application.rb b/config/application.rb index 8ac07ef337a2065b2ad52b6b50d70ebae7723e13..f483ccdad17995b67b0ff47def6860ccd29857ee 100644 --- a/config/application.rb +++ b/config/application.rb @@ -70,11 +70,11 @@ class Application < Rails::Application config.assets.version = '1.0' # Uncomment and customize the last line to run in a non-root path - # WARNING: This feature is no longer supported + # WARNING: This feature is known to work, but unsupported # Note that three settings need to be changed for this to work. # 1) In your application.rb file: config.relative_url_root = "/gitlab" # 2) In your gitlab.yml file: relative_url_root: /gitlab - # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] + # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab" # # config.relative_url_root = "/gitlab" end diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example index c1cc9f872f323daf0e8574f125dd0cf7bb639e46..8ece14526b3e4804f8699ccc26663776707f9968 100644 --- a/config/gitlab.yml.example +++ b/config/gitlab.yml.example @@ -20,11 +20,11 @@ production: &base https: false # Uncomment and customize the last line to run in a non-root path - # WARNING: This feature is no longer supported + # WARNING: This feature is known to work, but unsupported # Note that three settings need to be changed for this to work. # 1) In your application.rb file: config.relative_url_root = "/gitlab" # 2) In your gitlab.yml file: relative_url_root: /gitlab - # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] + # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab" # # relative_url_root: /gitlab