File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
frameworks/Ruby/rack-sequel Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
1616
1717ENV DBTYPE=postgresql
1818
19- ENV WEB_CONCURRENCY=auto
2019ENV MAX_THREADS=5
2120
2221EXPOSE 8080
2322
24- CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080 -e production
23+ CMD export WEB_CONCURRENCY=$(($(nproc)*5/4)) && \
24+ bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080 -e production
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
1616
1717ENV DBTYPE=mysql
1818
19- ENV WEB_CONCURRENCY=auto
2019ENV MAX_THREADS=5
2120
2221EXPOSE 8080
2322
24- CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080 -e production
23+ CMD export WEB_CONCURRENCY=$(($(nproc)*5/4)) && \
24+ bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080 -e production
You can’t perform that action at this time.
0 commit comments