Set path for gitlab.rb

This commit is contained in:
Pirate Praveen 2019-10-05 00:19:09 +05:30
parent 7def25d4d1
commit 96fa737425

View file

@ -18,3 +18,14 @@
# Initialize the rails application # Initialize the rails application
Rails.application.initialize! 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__)) }