From 5edf298758ac16db14c60c2e15e65cd90c320bc2 Mon Sep 17 00:00:00 2001 From: Matt Burchett Date: Wed, 7 Apr 2021 00:28:57 -0700 Subject: [PATCH] changing post deploy --- post_deploy.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/post_deploy.sh b/post_deploy.sh index 3054edf..dc52eed 100644 --- a/post_deploy.sh +++ b/post_deploy.sh @@ -3,10 +3,7 @@ # Create data dir if it doesn't exist mkdir -p /data -# update application cache -php artisan optimize - -# perform DB migrations +# perform setup if [[ ! -f ./database/database.sqlite ]]; then echo "No link to database. Linking database." ln -s /data/database.sqlite ./database/database.sqlite @@ -28,6 +25,10 @@ if [[ ! -f /data/.env ]]; then php artisan key:generate --force fi +# update application cache +php artisan optimize + +# perform db migrations php artisan migrate # own the data folder to www-data