mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 09:37:26 +00:00
dev.sh: Run php
if there is no php7.0
in PATH
This commit is contained in:
parent
1dd86537ba
commit
3be19879b9
1 changed files with 7 additions and 1 deletions
8
dev.sh
8
dev.sh
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
PHPBIN=php7.0
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
|
||||
|
@ -7,4 +9,8 @@ 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"
|
||||
if ! which $PHPBIN 2>/dev/null; then
|
||||
PHPBIN=php
|
||||
fi
|
||||
|
||||
$PHPBIN --server localhost:8000 --docroot "$DIR/web" "$DIR/web/index.php"
|
||||
|
|
Loading…
Add table
Reference in a new issue