1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 16:40:05 +01:00

Display nginx config errors on start

While since #268 valet has been checking nginx configs for errors when starting/restarting, the captured errors are never displayed if there is a failure because it's being run using `quietly()`. 
This PR causes the errors to pass through to the console so we can more readily understand why nginx may not be starting or not serving properly.
This commit is contained in:
Chris Brown
2019-11-30 16:31:18 -05:00
committed by GitHub
parent fb562977f0
commit e046fff6f6

View File

@@ -115,7 +115,7 @@ function installNginxDirectory()
*/
private function lint()
{
$this->cli->quietly(
$this->cli->run(
'sudo nginx -c '.static::NGINX_CONF.' -t',
function ($exitCode, $outputMessage) {
throw new DomainException("Nginx cannot start, please check your nginx.conf [$exitCode: $outputMessage].");