summaryrefslogtreecommitdiff
path: root/lib/tasks/gitlab/setup.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/gitlab/setup.rake')
-rw-r--r--lib/tasks/gitlab/setup.rake5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/setup.rake b/lib/tasks/gitlab/setup.rake
index f71e69987cb..dab96c5c54d 100644
--- a/lib/tasks/gitlab/setup.rake
+++ b/lib/tasks/gitlab/setup.rake
@@ -25,6 +25,11 @@ namespace :gitlab do
puts ""
end
+ # In production, we might want to prevent ourselves from shooting
+ # ourselves in the foot, so let's only do this in a test or
+ # development environment.
+ Gitlab::Database.terminate_all_connections unless Rails.env.production?
+
Rake::Task["db:reset"].invoke
Rake::Task["add_limits_mysql"].invoke
Rake::Task["setup_postgresql"].invoke