diff options
| author | Ben Beltran <ben@nsovocal.com> | 2017-01-31 00:53:36 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2017-01-31 00:53:36 -0600 |
| commit | a3f9e2603dfdf8c492ec0dc355cd434fc6100f06 (patch) | |
| tree | 52c84831a3a6070e3e01c5ada5b862fd56f28327 /bin | |
| parent | 7eb26514c478cfa06a797e9d63a29ef6a6d16d59 (diff) | |
| parent | f74591da2d5c42b8a1e658d17310e604bedcf856 (diff) | |
Diffstat (limited to 'bin')
| -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(); |