mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Explicitly stop and start brew services instead of restart
This solves a mysterious issue that may or may not be specific to my machine and it makes me very sad.
This commit is contained in:
@@ -108,7 +108,8 @@ function restartService($services)
|
||||
$services = is_array($services) ? $services : func_get_args();
|
||||
|
||||
foreach ($services as $service) {
|
||||
$this->cli->quietly('sudo brew services restart '.$service);
|
||||
$this->cli->quietly('sudo brew services stop '.$service);
|
||||
$this->cli->quietly('sudo brew services start '.$service);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ function rewriteSecureNginxFiles()
|
||||
*/
|
||||
function restart()
|
||||
{
|
||||
$this->cli->quietly('sudo brew services restart nginx');
|
||||
$this->brew->restartService('nginx');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -75,8 +75,6 @@ function updateConfiguration()
|
||||
*/
|
||||
function restart()
|
||||
{
|
||||
$this->stop();
|
||||
|
||||
$this->brew->restartLinkedPhp();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user