Skip to content

Commit bccd04b

Browse files
committed
Adding heroku config
1 parent 74b073c commit bccd04b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ Testing - https://edgeapi.rubyonrails.org/classes/ActionDispatch/SystemTestCase.
3333

3434

3535
## Render
36-
https://render.com/docs/deploy-rails#update-your-app-for-render
36+
https://render.com/docs/deploy-rails#update-your-app-for-render
37+
38+
39+
## Heroku
40+
https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server

config/puma.rb

+5
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,10 @@
3939
#
4040
preload_app!
4141

42+
on_worker_boot do
43+
# Valid on Rails 4.1+ using the `config/database.yml` method of setting `pool` size
44+
ActiveRecord::Base.establish_connection
45+
end
46+
4247
# Allow puma to be restarted by `rails restart` command.
4348
plugin :tmp_restart

0 commit comments

Comments
 (0)