init fresh installation
parent
cadf7303a8
commit
108693a7e4
|
@ -1,8 +1,16 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd /var/www
|
|
||||||
cp -r storage.skel/* storage/
|
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 storage:link
|
||||||
php artisan horizon:assets
|
php artisan horizon:assets
|
||||||
php artisan route:cache
|
php artisan route:cache
|
||||||
|
|
Loading…
Reference in New Issue