Set threads dynamically
This commit is contained in:
parent
09c8a8ffdd
commit
36297176e4
@ -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
1
config/puma.rb
Normal file
@ -0,0 +1 @@
|
||||
threads(1, `nproc`.chomp || 5)
|
Loading…
x
Reference in New Issue
Block a user