Skip to content

Commit

Permalink
Merge pull request #9498 from p8/rails/puma-6.5
Browse files Browse the repository at this point in the history
[rails] Update puma to 6.5 and auto config workers
  • Loading branch information
msmith-techempower authored Jan 7, 2025
2 parents f5b2bea + e9d5895 commit 81ff64f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frameworks/Ruby/rails/config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
port ENV.fetch("PORT", 3000)

tuned_num_workers, tuned_num_threads = auto_tune
workers tuned_num_workers

# Allow puma to be restarted by `bin/rails restart` command.
plugin :tmp_restart

Expand Down
1 change: 1 addition & 0 deletions frameworks/Ruby/rails/rails-mysql.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN bundle install --jobs=8

COPY . /rails/

ENV WEB_CONCURRENCY=auto
ENV RAILS_ENV=production_mysql
ENV PORT=8080
ENV REDIS_URL=redis://localhost:6379/0
Expand Down
1 change: 1 addition & 0 deletions frameworks/Ruby/rails/rails.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN bundle install --jobs=8

COPY . /rails/

ENV WEB_CONCURRENCY=auto
ENV RAILS_ENV=production_postgresql
ENV PORT=8080
ENV REDIS_URL=redis://localhost:6379/0
Expand Down

0 comments on commit 81ff64f

Please sign in to comment.