1234567891011121314151617 |
- #!/bin/bash
- export PHP_HOME=${IROOT}/php-5.5.17
- export PHP_FPM=${PHP_HOME}/sbin/php-fpm
- export PATH="$PHP_HOME/bin:$PHP_HOME/sbin:$PATH"
- export NGINX_HOME=${IROOT}/nginx
- sed -i 's|host=localhost;|host='"${DBHOST}"';|g' once.php.inc
- sed -i 's|SourceRoot = .*/FrameworkBenchmarks/hhvm|SourceRoot = '"${TROOT}"'|g' deploy/config.hdf
- sed -i 's|Path = .*/.hhvm.hhbc|Path = '"${TROOT}"'/.hhvm.bbhc|g' deploy/config.hdf
- sed -i 's|PidFile = .*/hhvm.pid|PidFile = '"${TROOT}"'/hhvm.pid|g' deploy/config.hdf
- sed -i 's|File = .*/error.log|File = '"${TROOT}"'/error.log|g' deploy/config.hdf
- sed -i "s|/usr/local/nginx/|${IROOT}/nginx/|g" deploy/nginx.conf
- sed -i "s|TEST_ROOT|${TROOT}|g" deploy/nginx.conf
- hhvm --config $TROOT/deploy/config.hdf --user $(whoami) -m daemon
- $NGINX_HOME/sbin/nginx -c $TROOT/deploy/nginx.conf
|