This commit is contained in:
Chris Wanstrath 2025-09-16 21:20:18 -07:00
parent 6af5dfd0dd
commit 967bdc6531

View File

@ -1,9 +1,9 @@
import { $ } from "bun" import { $ } from "bun"
import { apps } from "../src/webapp" import { apps } from "../src/webapp"
const ip = await $`hostname -I | awk '{print $1}'`.quiet() const { stdout: ip } = await $`hostname -I | awk '{print $1}'`.quiet()
const host = await $`hostname`.quiet() const { stdout: host } = await $`hostname`.quiet()
const hosts = apps().map(app => `${ip} ${app}.${host}.local`) const hosts = apps().map(app => `${ip} ${app}.${host.toString().trim()}.local`)
console.log(hosts.join("\n")) console.log(hosts.join("\n"))