setup.sh 495 B

1234567891011
  1. #!/bin/bash
  2. sed -i 's|localhost|'"${DBHOST}"'|g' app.psgi
  3. sed -i 's|server unix:.*/FrameworkBenchmarks/plack|server unix:'"${TROOT}"'|g' nginx.conf
  4. fw_depends perl nginx
  5. cpanm --notest --no-man-page --installdeps $TROOT
  6. nginx -c $TROOT/nginx.conf
  7. 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=${MAX_THREADS} -a $TROOT/app.psgi &