From 3a8184df7308515f1b9176edb73f4d1019ea566d Mon Sep 17 00:00:00 2001 From: Benjamin Brummer Date: Sun, 12 Jan 2025 00:56:21 +0000 Subject: [PATCH] fix for initialization with opcache.preload enabled --- 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 40a3ed5..39aea60 100755 --- a/debian/scripts/init.sh +++ b/debian/scripts/init.sh @@ -48,7 +48,7 @@ if [ "$*" = 'frankenphp php-cli artisan octane:frankenphp' ] || [ "${1#-}" != "$ frankenphp php-cli artisan migrate --force # If first IN run, it needs to be initialized - if [ "$(frankenphp php-cli artisan tinker --execute='echo Schema::hasTable("accounts") && !App\Models\Account::all()->first();')" = "1" ]; then + if [ "$(php -d opcache.preload='' artisan tinker --execute='echo Schema::hasTable("accounts") && !App\Models\Account::all()->first();')" = "1" ]; then echo "Running initialization..." frankenphp php-cli artisan db:seed --force