setup_hhvm.sh 638 B

123456789101112
  1. #!/bin/bash
  2. sed -i 's|host=localhost;|host='"${DBHOST}"';|g' once.php.inc
  3. sed -i 's|SourceRoot = .*/FrameworkBenchmarks/hhvm|SourceRoot = '"${TROOT}"'|g' deploy/config.hdf
  4. sed -i 's|Path = .*/.hhvm.hhbc|Path = '"${TROOT}"'/.hhvm.bbhc|g' deploy/config.hdf
  5. sed -i 's|PidFile = .*/hhvm.pid|PidFile = '"${TROOT}"'/hhvm.pid|g' deploy/config.hdf
  6. sed -i 's|File = .*/error.log|File = '"${TROOT}"'/error.log|g' deploy/config.hdf
  7. sed -i "s|/usr/local/nginx/|${IROOT}/nginx/|g" deploy/nginx.conf
  8. sed -i "s|TEST_ROOT|${TROOT}|g" deploy/nginx.conf
  9. hhvm --config $TROOT/deploy/config.hdf -m daemon
  10. $NGINX_HOME/sbin/nginx -c $TROOT/deploy/nginx.conf