Use process.env.NODE_DB_URI for mongohq database
This commit is contained in:
@@ -34,7 +34,7 @@ publicPath = path.join root, 'public'
|
||||
.use(express.session
|
||||
secret: 'secret_sauce'
|
||||
cookie: {maxAge: ONE_YEAR}
|
||||
store: new MongoStore(url: 'mongodb://test:test@staff.mongohq.com:10024/habitrpg', collection: 'express-sessions')
|
||||
store: new MongoStore(url: process.env.NODE_DB_URI, collection: 'express-sessions')
|
||||
)
|
||||
.use(app.session())
|
||||
|
||||
@@ -58,7 +58,7 @@ derby.use(require 'racer-db-mongo')
|
||||
|
||||
exports.store = app.createStore
|
||||
listen: server
|
||||
db: {type: 'Mongo', uri: 'mongodb://test:test@staff.mongohq.com:10024/habitrpg'}
|
||||
db: {type: 'Mongo', uri: process.env.NODE_DB_URI}
|
||||
|
||||
# Would implement cron here, using node-cron & https://github.com/codeparty/derby/issues/99#issuecomment-6596460
|
||||
# But it's not working
|
||||
|
||||
Reference in New Issue
Block a user