From 064120f8c9edc9c0cbc7bab2fcb1e9f9aee493f2 Mon Sep 17 00:00:00 2001 From: Matt Burchett Date: Wed, 7 Apr 2021 00:28:03 -0700 Subject: [PATCH] Fixing logging and changing post deploy --- post_deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/post_deploy.sh b/post_deploy.sh index 4aa667c..3054edf 100644 --- a/post_deploy.sh +++ b/post_deploy.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Create data dir if it doesn't exist +mkdir -p /data + # update application cache php artisan optimize @@ -27,6 +30,9 @@ fi php artisan migrate +# own the data folder to www-data +chown -R www-data: /data + # start the application php-fpm -D && nginx -g "daemon off;"