nope/lib/templates/index.js.handlebars
2021-04-23 17:20:57 +02:00

19 lines
567 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: "{{logLevel}}"
})
.catch(console.error);
}