Skip to content

Commit

Permalink
[2.x] Fixes missing entry to .gitignore (#780)
Browse files Browse the repository at this point in the history
* Ignores caddy directory

* Ignore warnings regarding $HOME
  • Loading branch information
nunomaduro authored Dec 20, 2023
1 parent 9fe22cb commit c235d98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Commands/Concerns/InteractsWithIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ trait InteractsWithIO
'exiting; byeee!!',
'storage cleaning happened too recently',
'write error',
'unable to determine directory for user configuration; falling back to current directory',
'$HOME environment variable is empty',
];

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function installFrankenPhpServer()
if (File::exists($gitIgnorePath)) {
$contents = File::get($gitIgnorePath);

$filesToAppend = collect(['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 c235d98

Please sign in to comment.