setup.sh 414 B

12345678910
  1. #!/bin/bash
  2. fw_depends php nginx composer
  3. sed -i 's|host = "localhost"|host = "'"${DBHOST}"'"|g' application/configs/application.ini
  4. sed -i 's|root .*/FrameworkBenchmarks/php-zend-framework1|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