ok
This commit is contained in:
parent
6af5dfd0dd
commit
967bdc6531
|
|
@ -1,9 +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 { stdout: ip } = await $`hostname -I | awk '{print $1}'`.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"))
|
||||
Loading…
Reference in New Issue
Block a user