Skip to content

Commit

Permalink
Set password to empty string by default
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbushnell committed Jan 1, 2025
1 parent bacbe7e commit 85ba2aa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Helpers/EnvironmentVariables.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static function setDB(string $currentEnv, Sandbox $sandbox): string
->replaceMatches('/^CRAFT_DB_USER=.*/m', 'CRAFT_DB_USER=forge')
->replaceMatches('/^DB_USER=.*/m', 'DB_USER=forge')
->replaceMatches('/^DB_PASSWORD=.*/m', 'DB_PASSWORD='.config('forge.db_password'))
// ->replaceMatches('/^CRAFT_DB_PASSWORD=.*/m', 'CRAFT_DB_PASSWORD='.config('forge.db_password'))
->replaceMatches('/^CRAFT_DB_PASSWORD=.*/m', 'CRAFT_DB_PASSWORD='.config('forge.db_password'))
->replaceMatches('/^DB_PASS=.*/m', 'DB_PASS='.config('forge.db_password'))
->value();
}
Expand Down
Binary file modified builds/blacksmith
Binary file not shown.
2 changes: 1 addition & 1 deletion config/forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'env_vars' => env('FORGE_ENV_VARS'),

// The primary `forge` user's database password
'db_password' => env('FORGE_DB_PASSWORD'),
'db_password' => env('FORGE_DB_PASSWORD', ''),

// If a database is in use this will be used for backing it up before destroying the site
'backup_provider' => env('FORGE_BACKUP_PROVIDER'),
Expand Down

0 comments on commit 85ba2aa

Please sign in to comment.