Add dist
This commit is contained in:
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
import { Command } from "commander";
|
||||
import grabConfig from "../../functions/grab-config";
|
||||
import startServer from "../../functions/server/start-server";
|
||||
import init from "../../functions/init";
|
||||
export default function () {
|
||||
return new Command("start")
|
||||
.description("Start production server")
|
||||
.action(async () => {
|
||||
console.log(`Starting production server ...`);
|
||||
await init();
|
||||
const config = await grabConfig();
|
||||
global.CONFIG = { ...config };
|
||||
await startServer();
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user