setup.sh 407 B

12345678910
  1. #!/bin/bash
  2. fw_depends php nginx composer
  3. sed -i 's|host=localhost|host='"${DBHOST}"'|g' config/autoload/benchmarks.local.php
  4. sed -i 's|root .*/FrameworkBenchmarks/php-zend-framework|root '"${TROOT}"'|g' deploy/nginx.conf
  5. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  6. php-fpm --fpm-config $FWROOT/config/php-fpm.conf -g $TROOT/deploy/php-fpm.pid
  7. nginx -c $TROOT/deploy/nginx.conf