run_jruby_puma.sh 334 B

123456789101112
  1. #!/bin/bash
  2. fw_depends rvm jruby-9k
  3. rvm jruby-$JRUBY_VERSION do \
  4. bundle install --jobs=4 --gemfile=$TROOT/Gemfile --path=vendor/bundle
  5. MAX_THREADS=256 ; export MAX_THREADS
  6. MIN_THREADS=$(( MAX_THREADS / 8 * 2 ))
  7. rvm jruby-$JRUBY_VERSION do \
  8. bundle exec puma -t $MIN_THREADS:$MAX_THREADS -b tcp://0.0.0.0:8080 -e production &