Skip to content

Commit

Permalink
fix: default port used
Browse files Browse the repository at this point in the history
bump to 2.9.3
  • Loading branch information
Dim145 committed Nov 22, 2024
1 parent 1e1badb commit 375d739
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
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.
#
set_default_host "0.0.0.0"
port ENV.fetch("PORT") { ENV.fetch("RAILS_ENV") == "kubernetes" ? 80 : 3000 }

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

# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
#
set_default_host "0.0.0.0"
port ENV.fetch("PORT", ENV.fetch("RAILS_ENV", "development") == "kubernetes" ? "80" : "3000")


# Specifies the number of `workers` to boot in clustered mode.
# Workers are forked webserver processes. If using threads and workers together
Expand Down
2 changes: 1 addition & 1 deletion entrypoints/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ fi

export kube_env=start

bundle exec rails s -b 0.0.0.0
bundle exec rails s -b 0.0.0.0 -p "${PORT:-80}"
2 changes: 1 addition & 1 deletion lib/elvis/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Elvis
VERSION = "2.9.2"
VERSION = "2.9.3"
end

0 comments on commit 375d739

Please sign in to comment.