1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-10 23:53:06 +00:00

Docker compose deploys use the correct passenger workers

This commit is contained in:
2022-02-03 21:33:24 +00:00
parent 9fec6c079f
commit ae70128479
4 changed files with 12 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ EXPOSE 443
# Tini solves the zombie PID problem
ENTRYPOINT ["/tini", "--"]
CMD bundle exec passenger start --max-pool-size 2 --min-instances 2 --environment production -p 80
CMD bundle exec passenger start --max-pool-size ${PASSENGER_POOL_SIZE} --min-instances ${PASSENGER_POOL_SIZE} --environment production -p 80
# Higher max pool uses more ram
# Followed recommendation from: https://blog.phusion.nl/2015/11/10/heroku-and-passenger-focus-on-the-app-performance/