mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
rename script
This commit is contained in:
parent
70f33a99d8
commit
083a40a5dc
4 changed files with 14 additions and 7 deletions
|
@ -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.
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
if [ ! -e "data/config.php" ]; then
|
||||
cp "data/config.php.example" "data/config.php"
|
||||
fi
|
9
dev.sh
9
dev.sh
|
@ -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"
|
||||
|
|
|
@ -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" \
|
Loading…
Add table
Reference in a new issue