Skip to content

Commit

Permalink
PORT is an env var, not a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeurer committed Dec 8, 2023
1 parent 2f8bd47 commit b74ed33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
threads min_threads_count, max_threads_count

if ENV["RAILS_ENV"] == "production"
bind "tcp://127.0.0.1:#{PORT}"
bind "tcp://127.0.0.1:#{ENV.fetch "PORT"}"

require "concurrent-ruby"
worker_count = Integer(ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count })
Expand Down

0 comments on commit b74ed33

Please sign in to comment.