Files

23 lines
463 B
Bash
Raw Permalink Normal View History

2016-04-05 18:40:44 -04:00
#!/bin/bash
2018-05-17 23:18:43 -04:00
set -e
2018-04-22 14:03:57 -04:00
PHPBIN=php7.2
2017-07-14 08:29:52 -04:00
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2017-04-05 14:58:29 +01:00
2017-07-14 08:29:52 -04:00
if [ ! -e "data/config.php" ]; then
2019-03-18 13:05:46 -05:00
cp "$DIR/data/config.php.example" "$DIR/data/config.php"
2017-07-14 08:29:52 -04:00
fi
if ! which $PHPBIN 2>/dev/null; then
2019-03-18 13:05:46 -05:00
PHPBIN=php
fi
2018-05-06 20:53:18 -04:00
# Installing git hook
$DIR/hooks/install.sh
2018-02-23 00:10:19 -05:00
$PHPBIN composer.phar install
2019-03-19 09:34:16 -05:00
git submodule update --init
2019-04-24 15:41:02 -05:00
git submodule update --recursive --remote
2019-03-28 17:52:41 -05:00
$PHPBIN --server 0.0.0.0:8000 --docroot "$DIR/web" "$DIR/web/index.php"