aboutsummaryrefslogtreecommitdiffstats
path: root/config/puma.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/puma.rb')
-rw-r--r--config/puma.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/puma.rb b/config/puma.rb
index 80401e5..61f22c2 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -12,10 +12,10 @@ workers 2
bind "unix://" + File.join(_rails_root, "tmp", "sockets", "web.sock")
+environment ENV.fetch("RAILS_ENV") { "development" }
+
on_worker_boot do
- ActiveSupport.on_load(:active_record) do
- ActiveRecord::Base.establish_connection
- end
+ ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
end
preload_app!