diff --git a/scripts/generate-hosts.ts b/scripts/generate-hosts.ts new file mode 100644 index 0000000..16cee7b --- /dev/null +++ b/scripts/generate-hosts.ts @@ -0,0 +1,9 @@ +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")) \ No newline at end of file