setup_hhvm.sh 736 B

1234567891011121314
  1. #!/bin/bash
  2. fw_depends php7 nginx composer hhvm
  3. sed -i 's|localhost|'"${DBHOST}"'|g' application/config/database.php
  4. sed -i 's|SourceRoot = .*/FrameworkBenchmarks/codeigniter|SourceRoot = '"${TROOT}"'|g' deploy/config.hdf
  5. sed -i 's|Path = .*/.hhvm.hhbc|Path = '"${TROOT}"'/.hhvm.bbhc|g' deploy/config.hdf
  6. sed -i 's|PidFile = .*/hhvm.pid|PidFile = '"${TROOT}"'/hhvm.pid|g' deploy/config.hdf
  7. sed -i 's|File = .*/error.log|File = '"${TROOT}"'/error.log|g' deploy/config.hdf
  8. sed -i 's|root .*/FrameworkBenchmarks/php-codeigniter|root '"${TROOT}"'|g' deploy/nginx.conf
  9. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  10. hhvm -m daemon --config $TROOT/deploy/config.hdf --user $(whoami)
  11. nginx -c $TROOT/deploy/nginx.conf