Skip to content

Commit

Permalink
cleanup puma config comments and configure host to default from HOST …
Browse files Browse the repository at this point in the history
…and default to 127.0.0.1
  • Loading branch information
toy committed Sep 30, 2024
1 parent 3273336 commit 5b9c6d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
threads_max_count = OpenProject::Configuration.web_max_threads
threads threads_min_count, [threads_min_count, threads_max_count].max

# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
#
# Specifies the address on which Puma will listen on to receive requests; default is 127.0.0.1.
set_default_host ENV.fetch("HOST") { "127.0.0.1" }

# Specifies the port that Puma will listen on to receive requests; default is 3000.
port ENV.fetch("PORT") { 3000 }.to_i

# Specifies the `environment` that Puma will run in.
#
# Specifies the environment that Puma will run in.
environment ENV.fetch("RAILS_ENV") { "development" }

# Specifies the number of `workers` to boot in clustered mode.
Expand Down

0 comments on commit 5b9c6d3

Please sign in to comment.