1234567891011121314151617 |
- #!/bin/bash
- sed -i 's|localhost|'"${DBHOST}"'|g' app.psgi
- sed -i 's|server unix:.*/FrameworkBenchmarks/plack|server unix:'"${TROOT}"'|g' nginx.conf
- fw_depends mysql perl nginx
- cpanm --notest --no-man-page \
- JSON::[email protected] \
- HTTP::Parser::[email protected] \
- [email protected] \
- [email protected] \
- DBD::[email protected] \
- [email protected]
-
- nginx -c $TROOT/nginx.conf
- 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 &
|