rename script

This commit is contained in:
Alex Grintsvayg 2017-07-14 08:29:52 -04:00
parent 70f33a99d8
commit 083a40a5dc
4 changed files with 14 additions and 7 deletions

View file

@ -15,7 +15,7 @@ You can also run the development server using docker:
- Install Docker
- Checkout the project
- Run `./dev-docker.sh` from the project root
- Run `./docker.sh` from the project root
- Access [localhost:8000](http://localhost:8000) in your browser
Both the `dev.sh` and `dev-docker.sh` scripts will initialise a configuration based on `data/config.php.example` if `data/config.php` does not exist.

View file

@ -1,3 +0,0 @@
if [ ! -e "data/config.php" ]; then
cp "data/config.php.example" "data/config.php"
fi

9
dev.sh
View file

@ -1,5 +1,10 @@
#!/bin/bash
source dev-prepare.sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
php7.0 --server localhost:8000 --docroot web/ web/index.php
if [ ! -e "data/config.php" ]; then
cp "$DIR/data/config.php.example" "$DIR/data/config.php"
fi
php7.0 --server localhost:8000 --docroot "$DIR/web" "$DIR/web/index.php"

View file

@ -1,6 +1,11 @@
#!/bin/bash
source dev-prepare.sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ ! -e "data/config.php" ]; then
cp "$DIR/data/config.php.example" "$DIR/data/config.php"
fi
docker run --rm -it --name "dev.lbry.io" \
-v "$(readlink -f .):/usr/src/lbry.io" \