diff --git a/src/webapp.ts b/src/webapp.ts index dc7dde7..435d849 100644 --- a/src/webapp.ts +++ b/src/webapp.ts @@ -105,5 +105,9 @@ function publishAppDNS(app: string) { } const appWatcher = watch(NOSE_WWW, (event, filename) => { - apps().forEach(publishAppDNS) + const www = apps() + www.forEach(publishAppDNS) + for (const name in dnsEntries) + if (!www.includes(name)) + dnsEntries[name].kill("SIGTERM") }) \ No newline at end of file