Skip to content

Commit

Permalink
fix puma config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyranja committed Jul 24, 2024
1 parent f822151 commit 75b90f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
rackup DefaultRackup if defined?(DefaultRackup)
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'

on_worker_boot do
# Worker-specific setup for Rails 4.1 to 5.2, after 5.2 it's not needed
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
ActiveRecord::Base.establish_connection
end

0 comments on commit 75b90f3

Please sign in to comment.