]>
Commit | Line | Data |
---|---|---|
2d5b700e BB |
1 | #!/usr/bin/env node |
2 | import Config from '../config/config.js'; | |
3 | import Forum from '../lib/forum.js'; | |
4 | ||
5 | const internals = {}; | |
6 | ||
7 | internals.forum = new Forum(Config); | |
8 | ||
9 | internals.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 | ||
21 | internals.main(); |