From e4e0cf21a31b74d5ee1e6d45b343ea60ed44f372 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 8 Dec 2017 01:35:26 +0100 Subject: hootbox stuff --- lib/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/index.js') diff --git a/lib/index.js b/lib/index.js index ad97526..5aef342 100644 --- a/lib/index.js +++ b/lib/index.js @@ -37,9 +37,9 @@ site.init = function(){ type: 'mongodb', host: 'localhost', port: 27017, - dbName: 'sessionDb', + dbName: 'buckySessionDb', collectionName: 'sessions', - timeout: 10000 + timeout: 10000, }), resave: true, saveUninitialized: false, @@ -50,7 +50,7 @@ site.init = function(){ app.use(passport.initialize()) app.use(passport.session()) - server = http.createServer(app).listen(5000, function () { + server = http.createServer(app).listen(process.env.PORT || 5000, function () { console.log('Bucky listening at http://5.k:%s', server.address().port) }) -- cgit v1.2.3-70-g09d2