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);