lbry.com/dev.sh
ポール ウェッブ 1267d04df8 Maybe this is needed?
2019-03-19 09:28:50 -05:00

22 lines
431 B
Bash
Executable file

#!/bin/bash
set -e
PHPBIN=php7.2
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ ! -e "data/config.php" ]; then
cp "$DIR/data/config.php.example" "$DIR/data/config.php"
fi
if ! which $PHPBIN 2>/dev/null; then
PHPBIN=php
fi
# Installing git hook
$DIR/hooks/install.sh
$PHPBIN composer.phar install
$PHPBIN git submodule update --init
$PHPBIN --server localhost:8000 --docroot "$DIR/web" "$DIR/web/index.php"