setup.sh 475 B

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