15 lines
380 B
TypeScript
15 lines
380 B
TypeScript
#!/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"),
|
|
});
|
|
}
|