setup.sh 554 B

123456789101112131415161718
  1. #!/bin/bash
  2. sed -i 's|localhost|'"${DBHOST}"'|g' app/config/database.config.php
  3. sed -i 's|root /home/ubuntu/FrameworkBenchmarks|root '"${TROOT}"'|g' deploy/nginx.conf
  4. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  5. fw_depends php5 nginx composer
  6. rm -fr clancatsapp
  7. rm -fr CCF
  8. git clone --branch v2.0.6 https://github.com/ClanCats/Framework.git clancatsapp
  9. cp -r app/ clancatsapp/CCF/
  10. cp -r vendor/ clancatsapp/CCF/
  11. php-fpm --fpm-config $FWROOT/config/php-fpm.conf -g $TROOT/deploy/php-fpm.pid
  12. nginx -c $TROOT/deploy/nginx.conf