Skip to content

Commit

Permalink
Git ignore the **/caddy directories (#960)
Browse files Browse the repository at this point in the history
This will successfully ignore the following files:

- `config/caddy/autosave.json`.
- `data/caddy/instance.uuid`.
- `data/caddy/last_clean.json`.
  • Loading branch information
maartenpaauw authored Oct 6, 2024
1 parent 4853917 commit d8d432e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function installFrankenPhpServer()
if (File::exists($gitIgnorePath)) {
$contents = File::get($gitIgnorePath);

$filesToAppend = collect(['/caddy', 'frankenphp', 'frankenphp-worker.php'])
$filesToAppend = collect(['**/caddy', 'frankenphp', 'frankenphp-worker.php'])
->filter(fn ($file) => ! str_contains($contents, $file.PHP_EOL))
->implode(PHP_EOL);

Expand Down

0 comments on commit d8d432e

Please sign in to comment.