Skip to content

Commit

Permalink
[#111] Include ENV reading step
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-viget committed Jul 1, 2024
1 parent aacd15a commit f736664
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/composer-scripts/ProjectEvents/PostInstallScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -121,11 +126,6 @@ public static function init( Event $event, bool $fromExecute = false ): void {
public static function execute( Event $event ): void {
self::setEvent( $event );

// Load DDEV Environment variables.
self::loadDDEVEnvironmentVars();

self::wait();

// Initialize the script.
self::init( $event, true );
}
Expand Down

0 comments on commit f736664

Please sign in to comment.