hatamo commited on
Commit
31aa2df
·
1 Parent(s): 683b833

Remove hardcoded port from puma.rb to avoid conflicts with -p flag

Browse files
Files changed (1) hide show
  1. 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
- # Specifies the `port` that Puma will listen on to receive requests; default is 7860 for Hugging Face Spaces.
32
- port ENV.fetch("PORT", 7860)
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