setup.sh 500 B

1234567891011
  1. #!/bin/bash
  2. sed -i 's|host=localhost|host='"${DBHOST}"'|g' config/autoload/benchmarks.local.php
  3. sed -i 'root .*/FrameworkBenchmarks/php-zend-framework|root '"${TROOT}"'|g' deploy/nginx.conf
  4. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  5. export PATH="$COMPOSER_HOME:$PHP_HOME/bin:$PHP_HOME/sbin:$PATH"
  6. composer.phar install --optimize-autoloader
  7. $PHP_FPM --fpm-config $FWROOT/config/php-fpm.conf -g $TROOT/deploy/php-fpm.pid
  8. $NGINX_HOME/sbin/nginx -c $TROOT/deploy/nginx.conf