Set path for gitlab.rb
This commit is contained in:
parent
7def25d4d1
commit
96fa737425
1 changed files with 11 additions and 0 deletions
11
debian/patches/0750-fix-relative-paths.patch
vendored
11
debian/patches/0750-fix-relative-paths.patch
vendored
|
@ -18,3 +18,14 @@
|
|||
|
||||
# Initialize the rails application
|
||||
Rails.application.initialize!
|
||||
--- a/config/settings.rb
|
||||
+++ b/config/settings.rb
|
||||
@@ -4,7 +4,7 @@
|
||||
# full Rails environment being loaded. We can not use `require_relative` either,
|
||||
# as Rails uses `load` for `require_dependency` (used when loading the Rails
|
||||
# environment). This could then lead to this file being loaded twice.
|
||||
-require_dependency File.expand_path('../lib/gitlab', __dir__)
|
||||
+require ('/usr/share/gitlab/lib/gitlab')
|
||||
|
||||
class Settings < Settingslogic
|
||||
source ENV.fetch('GITLAB_CONFIG') { Pathname.new(File.expand_path('gitlab.yml', __dir__)) }
|
||||
|
|
Loading…
Reference in a new issue