Skip to content

Commit

Permalink
[#111] Pre-populate Site info for fresh install
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-viget committed Jul 1, 2024
1 parent adb5af9 commit aacd15a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/composer-scripts/ProjectEvents/PostInstallScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ public static function init( Event $event, bool $fromExecute = false ): void {
// Give database population options
self::populateDatabase();
} else {
// Pre-populate Site Info
self::$info = [
'title' => 'WordPress Site Starter',
'description' => 'A project developed by Viget.',
'url' => 'https://wpstarter.ddev.site',
'username' => 'viget',
'email' => '[email protected]',
];

// Automatically install WordPress
self::doFreshInstall();
}
Expand Down

0 comments on commit aacd15a

Please sign in to comment.