setup.sh 534 B

123456789101112
  1. #!/bin/bash
  2. fw_depends php5 nginx composer
  3. sed -i 's|localhost:3306|'"${DBHOST}"':3306|g' index.php
  4. sed -i 's|.*/FrameworkBenchmarks/phreeze|"'"${TROOT}"'|g' deploy/phreeze
  5. sed -i 's|Directory .*/FrameworkBenchmarks/phreeze|Directory '"${TROOT}"'|g' deploy/phreeze
  6. sed -i 's|root .*/FrameworkBenchmarks/phreeze|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 -c $TROOT/deploy/nginx.conf