gentoo-overlay/www-apps/gitlab-ce/files/gitlab-ce-8.7.5-fix-redis-config-path.patch

27 lines
781 B
Diff
Raw Normal View History

2016-04-22 13:08:36 +02:00
diff --git a/config/application.rb b/config/application.rb
index 2e2ed48..7351aa2 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -4,7 +4,7 @@ require 'rails/all'
require 'devise'
I18n.config.enforce_available_locales = false
Bundler.require(:default, Rails.env)
-require_relative '../lib/gitlab/redis'
+require_relative '/opt/gitlab/lib/gitlab/redis'
module Gitlab
class Application < Rails::Application
diff --git a/config/mail_room.yml b/config/mail_room.yml
index 761a32a..1e2cbbb 100644
--- a/config/mail_room.yml
+++ b/config/mail_room.yml
@@ -2,7 +2,7 @@
<%
require "yaml"
require "json"
-require_relative "lib/gitlab/redis"
+require_relative "/opt/gitlab/lib/gitlab/redis"
rails_env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"