aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRubén Beltrán del Río <ben@nsovocal.com>2017-01-19 00:25:01 -0600
committerGitHub <noreply@github.com>2017-01-19 00:25:01 -0600
commit287fa13b3e600b2340895a5463a288bf08101bb5 (patch)
tree68b35cdd1bea40a6d51665ac7ed6dc4044eeda49 /bin
parentcc69fef4b7e1587a91a0603d4bd1a46d0b133dd5 (diff)
Add Login (#2)
* Add dependencies * Add barebones app * Ignore .DS_Store * Add base static assets * Expose port on docker * Ignore env files * Add instructions to use env.dist * Add twitter configs * Use latest node version * Read env file properly * Add dependencies to start parsing twitter * Add helper for twitter login operations * Add handler for titter login routes * Use twitter handler * Add JWT related keys * Add jwt dependencies * Move index static file * Rename twitter handler to auth, add jwt support * Add new yarn lock * Add instructions for twitter * Remove twitter image * Fix return value lint errors * Ignore require-yield errors in linter
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dasein.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/dasein.js b/bin/dasein.js
index 10edfc3..b6f7944 100755
--- a/bin/dasein.js
+++ b/bin/dasein.js
@@ -1,18 +1,16 @@
#!/usr/bin/env node
'use strict';
+const Config = require('../config/config');
const Dasein = require('..');
const internals = {};
-internals.dasein = new Dasein();
+internals.dasein = new Dasein(Config);
internals.main = () => {
- internals.dasein.run().then(() => {
-
- process.exit(0);
- }).catch((err) => {
+ internals.dasein.run().catch((err) => {
console.error(err.stack || err.message || err);
process.exit(1);