Spaces:
Sleeping
Sleeping
Remove hardcoded port from puma.rb to avoid conflicts with -p flag
Browse files- config/puma.rb +2 -5
config/puma.rb
CHANGED
|
@@ -28,11 +28,8 @@
|
|
| 28 |
threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
|
| 29 |
threads threads_count, threads_count
|
| 30 |
|
| 31 |
-
#
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
# Bind explicitly to all interfaces in container environments.
|
| 35 |
-
bind "tcp://0.0.0.0:#{ENV.fetch('PORT', 7860)}"
|
| 36 |
|
| 37 |
# Allow puma to be restarted by `bin/rails restart` command.
|
| 38 |
plugin :tmp_restart
|
|
|
|
| 28 |
threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
|
| 29 |
threads threads_count, threads_count
|
| 30 |
|
| 31 |
+
# Port is set via command-line argument (-p flag) from start script, not here
|
| 32 |
+
# This ensures consistency and avoids conflicts in container environments
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
# Allow puma to be restarted by `bin/rails restart` command.
|
| 35 |
plugin :tmp_restart
|