setup.sh 469 B

123456789101112
  1. #!/bin/bash
  2. sed -i 's|localhost|'"${DBHOST}"'|g' app.pl
  3. sed -i 's|server unix:.*/FrameworkBenchmarks/web-simple|server unix:'"${TROOT}"'|g' nginx.conf
  4. export PATH="$PERL_HOME/bin:$PATH"
  5. cpanm --notest --no-man-page Web::Simple DBI DBD::mysql Plack Starman JSON::XS
  6. echo installed Web::Simple app dependencies
  7. plackup -E production -s Starman --workers=${MAX_THREADS} -l $TROOT/frameworks-benchmark.sock -a $TROOT/app.pl &
  8. $NGINX_HOME/sbin/nginx -c $TROOT/nginx.conf