setup.sh 498 B

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