diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-08 01:35:26 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-08 01:35:26 +0100 |
| commit | e4e0cf21a31b74d5ee1e6d45b343ea60ed44f372 (patch) | |
| tree | d6e3d14c4b5ddfed5d8bd036a5eba29af505553b /lib/index.js | |
| parent | 3a4f027ec05aa5fdf4098ceb0dab09f69c5e0b8b (diff) | |
hootbox stuff
Diffstat (limited to 'lib/index.js')
| -rw-r--r-- | lib/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
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) }) |
