From 9cccad7cb7647f2356737e6979678b5efcf406cb Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Wed, 24 Sep 2025 17:45:42 +0200 Subject: [PATCH] use env port for puma --- config/puma.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/puma.rb b/config/puma.rb index a248513..360a0c6 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -28,7 +28,7 @@ threads_count = ENV.fetch("RAILS_MAX_THREADS", 3) 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 "tcp://0.0.0.0:#{ENV['PORT'] || 3000}" # Allow puma to be restarted by `bin/rails restart` command. plugin :tmp_restart