Skip to content

Commit

Permalink
feat: add gitignore for config-local.php
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed May 6, 2024
1 parent b52b3ed commit db78215
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions App/Commands/PwSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public function handle()
'userAuthSalt' => $config->userAuthSalt,
'tableSalt' => $config->tableSalt,
]);
$gitignore = $this->app->rootPath() . ".gitignore";
if (!is_file($gitignore)) {
file_put_contents($gitignore, "config-local.php\n");
}
}

// update config.php
Expand Down

0 comments on commit db78215

Please sign in to comment.