run_mri_passenger.sh 682 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. . $(dirname $0)/config/common_run.sh
  3. fw_depends $DBTYPE rvm ruby-2.4
  4. rvm use ruby-$MRI_VERSION
  5. . $(dirname $0)/config/bundle_install.sh
  6. # TODO: https://github.com/phusion/passenger/issues/1916
  7. export _PASSENGER_FORCE_HTTP_SESSION=true
  8. # FWBM only... Passenger will auto-tune itself in production!
  9. instances=$(ruby -r$(dirname $0)/config/auto_tune -e 'puts auto_tune.first')
  10. bundle exec passenger start --log-level 1 \
  11. --engine builtin --disable-turbocaching --disable-security-update-check \
  12. --spawn-method direct --max-pool-size $instances --min-instances $instances --max-request-queue-size 1024 \
  13. --address 0.0.0.0 --port 8080 --environment production &