File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11require_relative 'auto_tune'
22
33# FWBM only... use the puma_auto_tune gem in production!
4- num_workers , num_threads = auto_tune
4+ _ , num_threads = auto_tune
55
6- workers num_workers
7- threads num_threads , num_threads
6+ threads num_threads
87
98before_fork do
109 Sequel ::DATABASES . each ( &:disconnect )
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ WORKDIR /sinatra
1313ENV BUNDLE_WITH=postgresql:puma
1414RUN bundle install --jobs=4 --gemfile=/sinatra/Gemfile
1515
16+ ENV WEB_CONCURRENCY=auto
1617ENV DBTYPE=postgresql
1718
1819EXPOSE 8080
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ RUN bundle install --jobs=4 --gemfile=/sinatra/Gemfile
1515
1616ENV DBTYPE=mysql
1717
18+ ENV WEB_CONCURRENCY=auto
1819EXPOSE 8080
1920
2021CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080 -e production
You can’t perform that action at this time.
0 commit comments