summaryrefslogtreecommitdiff
path: root/config/environments
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-13 09:58:03 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-13 09:58:03 +0300
commit2c3ddacbd7171b62e4ba143faaceb013aa79305f (patch)
tree9d14df86822d6168580efc800c72248f8e5758e8 /config/environments
parent995e656addd588377fbf8ae6f9e04dee37ebc604 (diff)
downloadgitlab-ce-2c3ddacbd7171b62e4ba143faaceb013aa79305f.tar.gz
Disable threadsafe! for rake tasks
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/production.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 183b7ae5b70..7e02c75e562 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! unless $rails_rake_task
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found)