From 9a93b71d3add51ac50c091956f8236ef75e89f7b Mon Sep 17 00:00:00 2001 From: Joseph Snyder Date: Tue, 4 Aug 2026 15:10:06 -0400 Subject: [PATCH] Prevent APP_KEY check on validation command As the XML validation entry point doesn't need an APP_KEY variable to function properly, move the check for the key inside the if statments for the other command Closes: #3918 --- docker/docker-entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 7637445215..812f380eff 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -5,10 +5,10 @@ set -e # Set job control so we can bg/fg processes set -m -php artisan key:check || exit 1 # If the "start-website" argument was provided, start the web server if [ "$1" = "start-website" ] ; then + php artisan key:check || exit 1 if [ "$DEVELOPMENT_BUILD" = "1" ]; then echo "Skipping background jobs in development mode..." else @@ -42,6 +42,7 @@ if [ "$1" = "start-website" ] ; then # If the start-worker argument was provided, start a worker process instead elif [ "$1" = "start-worker" ] ; then + php artisan key:check || exit 1 php artisan storage:mkdirs php -d memory_limit=-1 artisan queue:work --verbose --max-time=3600 --memory=${WORKER_MEMORY_LIMIT:-256}