init fresh installation

pull/1/head
chris 2020-05-29 13:12:33 +02:00
parent cadf7303a8
commit 108693a7e4
1 changed files with 9 additions and 1 deletions

View File

@ -1,8 +1,16 @@
#!/usr/bin/env bash
cd /var/www
cp -r storage.skel/* storage/
if [[ ! -e storage/.docker.init ]];
then
echo "Fresh installation, initializing database..."
php artisan migrate:fresh --force
php artisan passport:install
chown www-data:www-data storage/oauth*key
echo done > storage/.docker.init
fi
php artisan storage:link
php artisan horizon:assets
php artisan route:cache