diff --git a/config/puma.rb b/config/puma.rb index 1e19380..4a246a8 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -7,9 +7,8 @@ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } threads threads_count, threads_count -# Specifies the `port` that Puma will listen on to receive requests; default is 3000. -# -port ENV.fetch("PORT") { 3000 } +# Specifies the socket Puma will listen on, can be tcp:// or unix://, defaults to localhost:3000 +bind ENV.fetch("BIND") { "tcp://[::1]:#{ ENV.fetch('PORT', 3000) }" } # Specifies the `environment` that Puma will run in. #