This commit is contained in:
hackerESQ
2025-01-25 22:54:10 -06:00
parent 416a82058b
commit d463ec689b
2 changed files with 5 additions and 6 deletions
+5 -4
View File
@@ -2,11 +2,12 @@
cd /var/www/app
echo -e "\n====================== Validating environment... ====================== "
run_as_www_user() {
artisan_as_www_user() {
su - www-data -c "/usr/local/bin/php /var/www/app/artisan $1"
}
echo -e "\n====================== Validating environment... ====================== "
if [[ -z "$APP_KEY" ]]; then
echo " > Oops! The required APP_KEY configuration is missing in your .env file! "
echo " > Copy and paste the below key into your .env file and restart the container... "
@@ -29,12 +30,12 @@ fi
if [ ! -L "public/storage" ]; then
echo " > Creating symbolic link for app public storage..."
run_as_www_user "storage:link"
artisan_as_www_user "storage:link"
fi
echo -e "\n====================== Running migrations... ====================== "
run_migrations() {
run_as_www_user "migrate --force"
artisan_as_www_user "migrate --force"
}
RETRIES=30
DELAY=5
-2
View File
@@ -1,2 +0,0 @@
[mysqld]
cte_max_recursion_depth = 25000