diff options
Diffstat (limited to 'bin/dasein.js')
| -rwxr-xr-x | bin/dasein.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/dasein.js b/bin/dasein.js new file mode 100755 index 0000000..b6f7944 --- /dev/null +++ b/bin/dasein.js @@ -0,0 +1,20 @@ +#!/usr/bin/env node +'use strict'; + +const Config = require('../config/config'); +const Dasein = require('..'); + +const internals = {}; + +internals.dasein = new Dasein(Config); + +internals.main = () => { + + internals.dasein.run().catch((err) => { + + console.error(err.stack || err.message || err); + process.exit(1); + }); +}; + +internals.main(); |