setup.sh 540 B

1234567891011
  1. #!/bin/bash
  2. export PERL_HOME=${IROOT}/perl-5.18
  3. export NGINX_HOME=${IROOT}/nginx
  4. sed -i 's|localhost|'"${DBHOST}"'|g' app.psgi
  5. sed -i 's|server unix:.*/FrameworkBenchmarks/plack|server unix:'"${TROOT}"'|g' nginx.conf
  6. export PATH=$PERL_HOME/bin:$PATH
  7. $NGINX_HOME/sbin/nginx -c $TROOT/nginx.conf
  8. 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 &