bookstack-ppm/app/entrypoint.sh

14 lines
282 B
Bash
Raw Normal View History

2019-06-11 14:25:43 +00:00
#!/bin/sh
2018-06-10 14:13:09 +00:00
set -ex
2021-02-25 12:52:22 +00:00
if [ ! -f .env ]; then
2019-07-31 20:25:17 +00:00
php artisan key:generate --no-interaction --force
fi
2018-06-10 14:13:09 +00:00
php artisan migrate --no-interaction --force
php artisan cache:clear
php artisan view:clear
2021-02-25 12:52:22 +00:00
echo "Starting PPM:"
/ppm/vendor/bin/ppm start --ansi --no-interaction --config=ppm.json