mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 09:37:26 +00:00
21 lines
No EOL
472 B
Bash
Executable file
21 lines
No EOL
472 B
Bash
Executable file
#!/bin/bash
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
if [ ! -e "$DIR/data/config.php" ]; then
|
|
cp "$DIR/data/config.php.example" "$DIR/data/config.php"
|
|
fi
|
|
|
|
# Installing git hook
|
|
$DIR/hooks/install.sh
|
|
|
|
docker run --rm -it --name "dev.lbry.io" \
|
|
-v "$DIR:/usr/src/lbry.io" \
|
|
-w "/usr/src/lbry.io" \
|
|
-p "127.0.0.1:8000:8000" \
|
|
-u "$(id -u):$(id -g)" \
|
|
php:7-alpine \
|
|
php composer.phar install
|
|
|
|
php --server "0.0.0.0:8000" --docroot "web/" "index.php" |