Skip to content

Commit b031ce2

Browse files
committed
fix: use bind port to avoid conflict
1 parent aec1db1 commit b031ce2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

config/puma.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
# Puma configuration file for ProStaff API
44

5-
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
65
# Bind to 0.0.0.0 to allow external connections (required for Docker/Railway)
7-
port ENV.fetch('PORT', 3000)
6+
# Note: Use bind instead of port to avoid double-binding issues
87
bind "tcp://0.0.0.0:#{ENV.fetch('PORT', 3000)}"
98

109
# Specifies the `environment` that Puma will run in.

0 commit comments

Comments
 (0)