setup.sh 607 B

1234567891011121314151617
  1. #!/bin/bash
  2. sed -i 's|localhost|'"${DBHOST}"'|g' app.psgi
  3. sed -i 's|server unix:.*/FrameworkBenchmarks/plack|server unix:'"${TROOT}"'|g' nginx.conf
  4. fw_depends mysql perl nginx
  5. cpanm --notest --no-man-page \
  6. JSON::[email protected] \
  7. HTTP::Parser::[email protected] \
  8. [email protected] \
  9. [email protected] \
  10. DBD::[email protected] \
  11. [email protected]
  12. nginx -c $TROOT/nginx.conf
  13. start_server --backlog=16384 --pid-file=$TROOT/app.pid --path=$TROOT/app.sock -- plackup -E production -s Starlet --max-keepalive-reqs 1000 --max-reqs-per-child 50000 --min-reqs-per-child 40000 --max-workers=${CPU_COUNT} -a $TROOT/app.psgi &