setup.sh 429 B

1234567891011121314151617
  1. #!/bin/bash
  2. sed -i 's|server unix:.*/FrameworkBenchmarks/web-simple|server unix:'"${TROOT}"'|g' nginx.conf
  3. fw_depends perl nginx
  4. cpanm --notest --no-man-page \
  5. Web::[email protected] \
  6. [email protected] \
  7. DBD::[email protected] \
  8. [email protected] \
  9. [email protected] \
  10. JSON::[email protected]
  11. nginx -c $TROOT/nginx.conf
  12. plackup -E production -s Starman --workers=${CPU_COUNT} -l $TROOT/frameworks-benchmark.sock -a $TROOT/app.pl &