From 7bae300fd2e8a3e7d3df07233493328f775f1ef7 Mon Sep 17 00:00:00 2001 From: Benjamin Brummer Date: Mon, 13 Jan 2025 12:20:03 +0000 Subject: [PATCH] disable preload for artisan tinker --- debian/scripts/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/scripts/init.sh b/debian/scripts/init.sh index 8acc15d..4385791 100755 --- a/debian/scripts/init.sh +++ b/debian/scripts/init.sh @@ -62,7 +62,7 @@ if [ "$*" = 'supervisord -c /etc/supervisor/conf.d/supervisord.conf' ]; then # If first IN run, it needs to be initialized echo "Checking initialization status..." - IN_INIT=$(php artisan tinker --execute='echo Schema::hasTable("accounts") && !App\Models\Account::all()->first();') + IN_INIT=$(php -d opcache.preload='' artisan tinker --execute='echo Schema::hasTable("accounts") && !App\Models\Account::all()->first();') echo "IN_INIT value: $IN_INIT" if [ "$IN_INIT" = "1" ]; then