lbry.com/dev.sh
Niko Storni c26e1e2142 update old dependencies
update composer
2021-01-12 22:19:57 +01:00

23 lines
463 B
Bash
Executable file

#!/bin/bash
set -e
PHPBIN=php7.4
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
git submodule update --init
git submodule update --recursive --remote
$PHPBIN --server 0.0.0.0:8000 --docroot "$DIR/web" "$DIR/web/index.php"