forked from dockers/pixelfed
init fresh installation
This commit is contained in:
parent
cadf7303a8
commit
108693a7e4
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue