From c235d9839290067df61c8bf7f257917848ed072a Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Wed, 20 Dec 2023 16:03:20 +0000 Subject: [PATCH] [2.x] Fixes missing entry to .gitignore (#780) * Ignores caddy directory * Ignore warnings regarding $HOME --- src/Commands/Concerns/InteractsWithIO.php | 2 ++ src/Commands/InstallCommand.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Commands/Concerns/InteractsWithIO.php b/src/Commands/Concerns/InteractsWithIO.php index dd056c9ed..3d3cf62dc 100644 --- a/src/Commands/Concerns/InteractsWithIO.php +++ b/src/Commands/Concerns/InteractsWithIO.php @@ -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', ]; /** diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index af42168a0..3608dbb0a 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -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);