2018-12-22 05:41:30 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2021-01-12 23:03:22 +01:00
|
|
|
PHPBIN=php7.4
|
2018-12-22 05:41:30 +01:00
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -e "config/app.php" ]; then
|
|
|
|
cp "$DIR/config/app.default.php" "$DIR/config/app.php"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! which $PHPBIN 2>/dev/null; then
|
|
|
|
PHPBIN=php
|
|
|
|
fi
|
|
|
|
|
|
|
|
#Composer update
|
|
|
|
composer update
|
|
|
|
|
|
|
|
#$PHPBIN composer.phar install
|
|
|
|
|
2021-01-12 23:03:22 +01:00
|
|
|
$PHPBIN --server localhost:8000 --docroot "$DIR/webroot" "$DIR/webroot/index.php"
|