able-baker/boot-server.tsx

15 lines
258 B
TypeScript
Raw Normal View History

2023-06-21 17:32:10 -04:00
import "./run-serve.tsx";
2023-06-20 21:40:49 -04:00
Deno.args.forEach(arg=>
{
if(arg.startsWith("--"))
{
const kvp = arg.substring(2).split("=");
Deno.env.set(kvp[0], kvp[1] || "true");
}
});
if(Deno.env.get("dev"))
{
2023-06-21 17:32:10 -04:00
await import("./run-local.tsx");
2023-06-20 21:40:49 -04:00
}