setup.sh 719 B

12345678910111213141516
  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:3306|'"${DBHOST}"':3306|g' index.php
  7. sed -i 's|.*/FrameworkBenchmarks/phreeze|"'"${TROOT}"'|g' deploy/phreeze
  8. sed -i 's|Directory .*/FrameworkBenchmarks/phreeze|Directory '"${TROOT}"'|g' deploy/phreeze
  9. sed -i 's|root .*/FrameworkBenchmarks/phreeze|root '"${TROOT}"'|g' deploy/nginx.conf
  10. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  11. export PATH="$PHP_HOME/bin:$PHP_HOME/sbin:$PATH"
  12. $PHP_FPM --fpm-config $FWROOT/config/php-fpm.conf -g $TROOT/deploy/php-fpm.pid
  13. $NGINX_HOME/sbin/nginx -c $TROOT/deploy/nginx.conf