11 lines
298 B
TypeScript
Executable file
11 lines
298 B
TypeScript
Executable file
#!./run
|
|
|
|
import { serveBundles } from "./server.ts";
|
|
|
|
if (import.meta.main) {
|
|
if (Deno.args.length >= 1 && Deno.args.length <= 2) {
|
|
await serveBundles(Deno.args[0], parseInt(Deno.args[1] || "8000"));
|
|
} else {
|
|
console.error("Usage: server.ts yourgithosting.net/namespace [port]");
|
|
}
|
|
}
|