File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# Puma configuration file for ProStaff API
44
55# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
6+ # Bind to 0.0.0.0 to allow external connections (required for Docker/Railway)
67port ENV . fetch ( 'PORT' , 3000 )
8+ bind "tcp://0.0.0.0:#{ ENV . fetch ( 'PORT' , 3000 ) } "
79
810# Specifies the `environment` that Puma will run in.
911# If PORT is set (common in production environments), default to production
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ builder = "dockerfile"
44dockerfilePath = " Dockerfile.production"
55
66[deploy ]
7- # Alteração 1: Forçar o binding em 0.0.0.0 e usar a porta injetada pelo Railway
8- startCommand = " bundle exec puma -b 0.0.0.0 -p ${PORT:-8080} - C config/puma.rb"
7+ # Use puma.rb configuration for binding (it already handles PORT env var)
8+ startCommand = " bundle exec puma -C config/puma.rb"
99
10- # Alteração 2: Mudar o caminho para o padrão do Rails 7.1+
10+ # Health check configuration
1111healthcheckPath = " /up"
1212healthcheckTimeout = 300
1313restartPolicyType = " on_failure"
You can’t perform that action at this time.
0 commit comments