mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Fix Homebrew PHP default www pools issue
This commit is contained in:
@@ -92,6 +92,12 @@ public function createConfigurationFiles($phpVersion)
|
||||
|
||||
$this->files->ensureDirExists(dirname($fpmConfigFile), user());
|
||||
|
||||
// rename (to disable) old FPM Pool configuration, regardless of whether it's a default config or one customized by an older Valet version
|
||||
$oldFile = dirname($fpmConfigFile).'/www.conf';
|
||||
if (file_exists($oldFile)) {
|
||||
rename($oldFile, $oldFile.'-backup');
|
||||
}
|
||||
|
||||
// Create FPM Config File from stub
|
||||
$contents = str_replace(
|
||||
['VALET_USER', 'VALET_HOME_PATH', 'valet.sock'],
|
||||
|
||||
Reference in New Issue
Block a user