nose-pluto/scripts/generate-hosts.ts
Chris Wanstrath 6af5dfd0dd hosts
2025-09-16 21:18:27 -07:00

9 lines
253 B
TypeScript

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