diff --git a/cli/Valet/Ngrok.php b/cli/Valet/Ngrok.php index 7f2ff9b0e..1b9636b0f 100644 --- a/cli/Valet/Ngrok.php +++ b/cli/Valet/Ngrok.php @@ -16,6 +16,9 @@ class Ngrok */ function currentTunnelUrl($domain = null) { + // wait a second for ngrok to start before attempting to find available tunnels + sleep(1); + return retry(20, function () use ($domain) { $body = Request::get($this->tunnelsEndpoint)->send()->body;