setup.sh 489 B

123456789101112
  1. #!/bin/bash
  2. export PHP_HOME=${IROOT}/php-5.5.17
  3. export PHP_FPM=$PHP_HOME/sbin/php-fpm
  4. export NGINX_HOME=${IROOT}/nginx
  5. sed -i 's|192.168.100.102|'"${DBHOST}"'|g' app/config/bootstrap/connections.php
  6. sed -i 's|root .*/FrameworkBenchmarks/php-lithium|root '"${TROOT}"'|g' deploy/nginx.conf
  7. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  8. $PHP_FPM --fpm-config $FWROOT/config/php-fpm.conf -g $TROOT/deploy/php-fpm.pid
  9. $NGINX_HOME/sbin/nginx -c $TROOT/deploy/nginx.conf