setup.sh 401 B

123456789
  1. #!/bin/bash
  2. sed -i 's|localhost|'"${DBHOST}"'|g' app.pl
  3. #sed -i 's|user .*;|user '"$(id -u -n)"';|g' nginx.conf
  4. sed -i 's|server unix.*frameworks-benchmark.sock;|server unix:'"${TROOT}"'/frameworks-benchmark.sock;|g' nginx.conf
  5. $NGINX_HOME/sbin/nginx -c ${TROOT}/nginx.conf
  6. $PERL_HOME/bin/plackup -E production -s Starman --workers=${MAX_THREADS} -l ${TROOT}/frameworks-benchmark.sock -a ./app.pl &