From bd3cc772d689be87a7a538596c2d94b027227a98 Mon Sep 17 00:00:00 2001 From: Brian DiChiara Date: Mon, 1 Jul 2024 12:45:33 -0500 Subject: [PATCH] [#111] Include ENV reading step --- .../ProjectEvents/PostInstallScript.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/composer-scripts/ProjectEvents/PostInstallScript.php b/bin/composer-scripts/ProjectEvents/PostInstallScript.php index bc0167c7..99faa3d9 100644 --- a/bin/composer-scripts/ProjectEvents/PostInstallScript.php +++ b/bin/composer-scripts/ProjectEvents/PostInstallScript.php @@ -77,6 +77,11 @@ class PostInstallScript extends ComposerScript { public static function init( Event $event, bool $fromExecute = false ): void { self::setEvent( $event ); + // Load DDEV Environment variables. + self::loadDDEVEnvironmentVars(); + + self::wait(); + if ( self::needsSetup() ) { // Download WordPress self::downloadWordPress(); @@ -126,11 +131,6 @@ public static function execute( Event $event ): void { return; } - // Load DDEV Environment variables. - self::loadDDEVEnvironmentVars(); - - self::wait(); - // Initialize the script. self::init( $event, true ); }