Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ GEM
date
stringio
public_suffix (6.0.1)
puma (6.6.1)
puma (8.0.2)
nio4r (~> 2.0)
raabro (1.4.0)
racc (1.8.1)
Expand Down
5 changes: 4 additions & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
threads threads_count, threads_count

# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
port ENV.fetch("PORT", 3000)
# Bind explicitly to IPv4. Puma 8 changed the default bind to IPv6 (`::`) when an
# IPv6 interface is available; Heroku's router connects over IPv4, so an IPv6-only
# bind would cause an H20 boot timeout. Pinning 0.0.0.0 keeps it deterministic.
port ENV.fetch("PORT", 3000), "0.0.0.0"

# Allow puma to be restarted by `bin/rails restart` command.
plugin :tmp_restart
Expand Down