hosts
This commit is contained in:
parent
f72d051caa
commit
6af5dfd0dd
9
scripts/generate-hosts.ts
Normal file
9
scripts/generate-hosts.ts
Normal file
|
|
@ -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"))
|
||||||
Loading…
Reference in New Issue
Block a user