mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Use process.env.NODE_DB_URI for mongohq database
This commit is contained in:
@@ -35,7 +35,7 @@ publicPath = path.join(root, 'public');
|
||||
maxAge: ONE_YEAR
|
||||
},
|
||||
store: new MongoStore({
|
||||
url: 'mongodb://test:test@staff.mongohq.com:10024/habitrpg',
|
||||
url: process.env.NODE_DB_URI,
|
||||
collection: 'express-sessions'
|
||||
})
|
||||
})).use(app.session()).use(app.router()).use(expressApp.router).use(serverError(root));
|
||||
@@ -52,6 +52,6 @@ exports.store = app.createStore({
|
||||
listen: server,
|
||||
db: {
|
||||
type: 'Mongo',
|
||||
uri: 'mongodb://test:test@staff.mongohq.com:10024/habitrpg'
|
||||
uri: process.env.NODE_DB_URI
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user