setup.sh 471 B

123456789
  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. export PATH=$PERL_HOME/bin:$PATH
  5. $NGINX_HOME/sbin/nginx -c $TROOT/nginx.conf
  6. 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 &