summaryrefslogtreecommitdiff
path: root/lib/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/index.js')
-rw-r--r--lib/index.js6
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)
})