]> git.r.bdr.sh - rbdr/forum/blob - bin/forum
44bc4086003d13b3a7f920ed694228b795abe6f4
[rbdr/forum] / bin / forum
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();