Skip to content

Commit 81ff64f

Browse files
Merge pull request #9498 from p8/rails/puma-6.5
[rails] Update puma to 6.5 and auto config workers
2 parents f5b2bea + e9d5895 commit 81ff64f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

frameworks/Ruby/rails/config/puma.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
3131
port ENV.fetch("PORT", 3000)
3232

33-
tuned_num_workers, tuned_num_threads = auto_tune
34-
workers tuned_num_workers
35-
3633
# Allow puma to be restarted by `bin/rails restart` command.
3734
plugin :tmp_restart
3835

frameworks/Ruby/rails/rails-mysql.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN bundle install --jobs=8
2020

2121
COPY . /rails/
2222

23+
ENV WEB_CONCURRENCY=auto
2324
ENV RAILS_ENV=production_mysql
2425
ENV PORT=8080
2526
ENV REDIS_URL=redis://localhost:6379/0

frameworks/Ruby/rails/rails.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN bundle install --jobs=8
2020

2121
COPY . /rails/
2222

23+
ENV WEB_CONCURRENCY=auto
2324
ENV RAILS_ENV=production_postgresql
2425
ENV PORT=8080
2526
ENV REDIS_URL=redis://localhost:6379/0

0 commit comments

Comments
 (0)