From 108693a7e442b9efdc7f1694da0f30b039f6fa1c Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 29 May 2020 13:12:33 +0200 Subject: [PATCH] init fresh installation --- entrypoint.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 812a24a..7c71e35 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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