setup.sh 487 B

1234567891011
  1. #!/bin/bash
  2. sed -i 's|host = "localhost"|host = "'"${DBHOST}"'"|g' application/configs/application.ini
  3. sed -i 's|root .*/FrameworkBenchmarks/php-zend-framework1|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
  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