setup.sh 581 B

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