mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 09:37:26 +00:00
readding dev.sh
This commit is contained in:
parent
387983e0a5
commit
41dfc9a45b
1 changed files with 23 additions and 0 deletions
23
dev.sh
Executable file
23
dev.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
PHPBIN=php7.3
|
||||
|
||||
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"
|
Loading…
Add table
Reference in a new issue