Set threads dynamically

This commit is contained in:
swaggboi 2022-02-20 03:07:15 -05:00
parent 09c8a8ffdd
commit 36297176e4
2 changed files with 2 additions and 1 deletions

View File

@ -17,4 +17,4 @@ RUN bundle install
EXPOSE 4567
# Send it
CMD ["bundle", "exec", "puma", "-p", "4567", "-t", "2", "-e", "production"]
CMD ["bundle", "exec", "puma", "-p", "4567", "-e", "production"]

1
config/puma.rb Normal file
View File

@ -0,0 +1 @@
threads(1, `nproc`.chomp || 5)