From d0d809b544ad9ca7efc37cf7f06f9f416a97b83f Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 30 Jun 2026 13:49:17 +0200 Subject: [PATCH] Fix console on bare-metal installs Open for discussion, because I don't know if this is the right solution, but we ran into the issue that the .env file was not loaded automatically when running `bin/console` commands. We run multiple instances of EB on the same machine, so it's crucial that we can set the environment variables (especially APP_SECRET) per instance instead of setting it globally. This change seems to fix that. --- bin/console | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/console b/bin/console index 3882cc1776..010e0ede44 100755 --- a/bin/console +++ b/bin/console @@ -8,7 +8,7 @@ use Symfony\Component\ErrorHandler\Debug; set_time_limit(0); -require dirname(__DIR__) . '/vendor/autoload.php'; +require dirname(__DIR__) . '/config/bootstrap.php'; if (!class_exists(Application::class)) { throw new RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.');