setup.sh 380 B

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