setup.sh 626 B

123456789101112131415
  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|127.0.0.1|'"${DBHOST}"'|g' app/config/database.php
  7. sed -i 's|root .*/FrameworkBenchmarks/frameworks/PHP/php-laravel|root '"${TROOT}"'|g' deploy/nginx.conf
  8. sed -i 's|/home/vagrant/FrameworkBenchmarks/installs/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  9. export PATH="${PHP_HOME}/bin:${PHP_HOME}/sbin:$PATH"
  10. $PHP_FPM --fpm-config ${FWROOT}/config/php-fpm.conf -g ${TROOT}/deploy/php-fpm.pid
  11. ${NGINX_HOME}/sbin/nginx -c ${TROOT}/deploy/nginx.conf