UNPKG

@webfaas/webfaas-server

Version:
23 lines 671 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Server_1 = require("../lib/Server"); const server = new Server_1.Server(); (async function () { const commandData = server.convertArgsToCommandData(process.argv.slice(2)); server.configure(commandData); try { await server.start(); console.log("Server started!"); } catch (errTry) { console.error("Err: ", errTry); process.exit(1); } })(); process.on("SIGTERM", async () => { console.log("Server shutdown..."); await server.stop(); console.log("Server stoped"); }); //# sourceMappingURL=webfaas.js.map