Skip to content

Commit 727baa6

Browse files
🐛 Ensure loopback alias and launch daemon file exist after re-installation.
1 parent 5f46ac4 commit 727baa6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/Valet/Nginx.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ function rewriteSecureNginxFiles()
150150
$tld = $this->configuration->read()['tld'];
151151
$loopback = $this->configuration->read()['loopback'];
152152

153+
if ($loopback !== VALET_LOOPBACK) {
154+
$this->site->aliasLoopback(VALET_LOOPBACK, $loopback);
155+
}
156+
153157
$config = compact('tld', 'loopback');
154158

155159
$this->site->resecureForNewConfiguration($config, $config);

0 commit comments

Comments
 (0)