1234567891011121314151617181920 |
- #!/bin/bash
- fw_depends php nginx
- sed -i 's|localhost|'"${DBHOST}"'|g' index.php
- sed -i 's|root .*/FrameworkBenchmarks/fat-free|root '"${TROOT}"'|g' deploy/nginx.conf
- sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
- F3DIR="$TROOT/src"
- [[ ! -e "$F3DIR" ]] || rm -rf "$F3DIR"
- git clone "https://github.com/bcosca/fatfree-core.git" "$F3DIR"
- pushd "$F3DIR" > /dev/null
- git checkout -q "069ccd84afd2461c7ebb67f660c142f97577e661" # v3.5.2-dev
- popd > /dev/null
- php-fpm --fpm-config $FWROOT/config/php-fpm.conf -g $TROOT/deploy/php-fpm.pid
- nginx -c $TROOT/deploy/nginx.conf
|