be-starter-template/docker-entrypoint.sh

18 lines
273 B
Bash
Executable File

source "$PWD/.env"
if [ ! -d "$PWD/vendor" ]; then
# vendor not exist.
composer i
else
# vendor exist.
composer u
fi
if [ ! -f "$PWD/.env" ]; then
cp .env.example .env
fi
# find . -name '*.php' | entr watch file
php artisan serve --host "0.0.0.0"