junk/entemu/dev.ts

16 lines
380 B
TypeScript
Raw Permalink Normal View History

2024-12-17 15:33:24 +00:00
#!/usr/bin/env -S deno run -A --watch=static/,routes/
import { Builder } from "fresh/dev";
import { app } from "./main.ts";
const builder = new Builder();
if (Deno.args.includes("build")) {
await builder.build(app);
} else {
await builder.listen(app, {
hostname: Deno.env.get("junkhost") || "127.0.0.1",
port: parseInt(Deno.env.get("junkport") || "11001"),
});
}