summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-11 18:03:13 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-11 18:03:13 +0300
commit5511a731bcc05034abacd4ec01ff7d5a2a3b89d3 (patch)
tree1fbd7325a9f0f4a42a4ddb386cdb36f3f12c8ee0 /config
parent159eee8dfde049b571172ee3594cf8c920b0fc10 (diff)
downloadgitlab-ce-5511a731bcc05034abacd4ec01ff7d5a2a3b89d3.tar.gz
Enable threadsafe. Preload lib/
Diffstat (limited to 'config')
-rw-r--r--config/environments/production.rb2
-rw-r--r--config/initializers/2_app.rb5
2 files changed, 6 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index dc8e25593ae..183b7ae5b70 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -52,7 +52,7 @@ Gitlab::Application.configure do
# config.action_mailer.raise_delivery_errors = false
# Enable threaded mode
- # config.threadsafe!
+ config.threadsafe!
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found)
diff --git a/config/initializers/2_app.rb b/config/initializers/2_app.rb
index 27a0c0ffeb2..e2f98002347 100644
--- a/config/initializers/2_app.rb
+++ b/config/initializers/2_app.rb
@@ -6,3 +6,8 @@ module Gitlab
Settings
end
end
+
+#
+# Load all libs for threadsafety
+#
+Dir["#{Rails.root}/lib/**/*.rb"].each { |file| require file }