setup.sh 444 B

1234567891011
  1. #!/bin/bash
  2. fw_depends php nginx
  3. sed -i 's|mongodb://localhost|mongodb://'"${DBHOST}"'|g' app/config/config.php
  4. sed -i 's|localhost|'"${DBHOST}"'|g' app/config/config.php
  5. sed -i 's|root .*/FrameworkBenchmarks/php-phalcon|root '"${TROOT}"'|g' deploy/nginx.conf
  6. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  7. php-fpm --fpm-config $FWROOT/config/php-fpm.conf -g $TROOT/deploy/php-fpm.pid
  8. nginx -c $TROOT/deploy/nginx.conf