1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +01:00

🐛 Ensure loopback alias and launch daemon file exist after re-installation.

This commit is contained in:
Mikaël Popowicz
2021-02-24 00:45:46 +01:00
parent 5f46ac4e23
commit 727baa6c09

View File

@@ -150,6 +150,10 @@ function rewriteSecureNginxFiles()
$tld = $this->configuration->read()['tld'];
$loopback = $this->configuration->read()['loopback'];
if ($loopback !== VALET_LOOPBACK) {
$this->site->aliasLoopback(VALET_LOOPBACK, $loopback);
}
$config = compact('tld', 'loopback');
$this->site->resecureForNewConfiguration($config, $config);