123456789101112131415161718192021 |
- #!/bin/bash
- sed -i 's|localhost|'"${DBHOST}"'|g' app.pl
- sed -i 's|user .*;|user '"$(id -u -n)"';|g' nginx.conf
- sed -i 's|server unix.*frameworks-benchmark.sock;|server unix:'"${TROOT}"'/frameworks-benchmark.sock;|g' nginx.conf
- fw_depends perl nginx mysql mongodb
- cpanm --notest --no-man-page \
- [email protected] \
- [email protected] \
- DBD::[email protected] \
- [email protected] \
- Kelp::Module::JSON::[email protected] \
- HTML::[email protected] \
- HTTP::Parser::[email protected] \
- [email protected]
- nginx -c ${TROOT}/nginx.conf
- plackup -E production -s Starman --workers=${CPU_COUNT} -l ${TROOT}/frameworks-benchmark.sock -a ./app.pl &
|