1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 00:40:06 +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:
Adam Wathan
2017-01-21 12:00:05 -05:00
parent 3f9bce7744
commit 3027a0dbba
3 changed files with 3 additions and 4 deletions

View File

@@ -108,7 +108,8 @@ function restartService($services)
$services = is_array($services) ? $services : func_get_args(); $services = is_array($services) ? $services : func_get_args();
foreach ($services as $service) { 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);
} }
} }

View File

@@ -120,7 +120,7 @@ function rewriteSecureNginxFiles()
*/ */
function restart() function restart()
{ {
$this->cli->quietly('sudo brew services restart nginx'); $this->brew->restartService('nginx');
} }
/** /**

View File

@@ -75,8 +75,6 @@ function updateConfiguration()
*/ */
function restart() function restart()
{ {
$this->stop();
$this->brew->restartLinkedPhp(); $this->brew->restartLinkedPhp();
} }