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