nope/lib/templates/index.js.handlebars
2021-01-08 16:58:55 +01:00

19 lines
560 B
Handlebars

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const runNopeBackend = require("../../../dist/lib/cli/runNopeBackend");
if (require.main === module) {
process.on("unhandledRejection", (reason, p) => {
console.log("Unhandled Rejection at: Promise", p, "reason:", reason);
console.error(reason);
throw reason;
});
runNopeBackend
.runNopeBackend({
file: path.join(__dirname, "settings.json"),
channel: "{{layer}}",
log: "debug"
})
.catch(console.error);
}