]> git.r.bdr.sh - rbdr/forum/blame - bin/forum
Add a router
[rbdr/forum] / bin / forum
CommitLineData
2d5b700e
BB
1#!/usr/bin/env node
2import Config from '../config/config.js';
3import Forum from '../lib/forum.js';
4
5const internals = {};
6
7internals.forum = new Forum(Config);
8
9internals.main = async () => {
10
11 try {
12 await internals.forum.run();
13 process.exit(0);
14 }
15 catch (err) {
16 console.error(err.stack || err.message || err);
17 process.exit(1);
18 }
19};
20
21internals.main();