From 216e2271dbf03280b269cb2f12a11578cde8cc97 Mon Sep 17 00:00:00 2001 From: Oleh Fedorenko Date: Thu, 24 Oct 2024 14:44:09 +0000 Subject: [PATCH] Refs #37825 - Clear all connections after webpack:compile --- lib/tasks/webpack_compile.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/webpack_compile.rake b/lib/tasks/webpack_compile.rake index 4aaa37d538c..175d6b1cd1e 100644 --- a/lib/tasks/webpack_compile.rake +++ b/lib/tasks/webpack_compile.rake @@ -16,5 +16,6 @@ namespace :webpack do end sh "npx --max_old_space_size=#{max_old_space_size} webpack --config #{config_file} --bail" + ActiveRecord::Base.clear_all_connections! end end