setup.sh 569 B

1234567891011121314
  1. #!/bin/bash
  2. export PHP_HOME=${IROOT}/php-5.5.17
  3. export PHP_FPM=${PHP_HOME}/sbin/php-fpm
  4. export NGINX_HOME=${IROOT}/nginx
  5. sed -i 's|127.0.0.1|'"${DBHOST}"'|g' app/config/database.php
  6. sed -i 's|root .*/FrameworkBenchmarks/php-laravel|root '"${TROOT}"'|g' deploy/nginx.conf
  7. sed -i 's|/home/vagrant/FrameworkBenchmarks/installs/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  8. export PATH="${PHP_HOME}/bin:${PHP_HOME}/sbin:$PATH"
  9. ${PHP_FPM} --fpm-config ${FWROOT}/config/php-fpm.conf -g ${TROOT}/deploy/php-fpm.pid
  10. ${NGINX_HOME}/sbin/nginx -c ${TROOT}/deploy/nginx.conf