mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
nodejitsu: db credentials, remove
This commit is contained in:
parent
0f8b7d48bd
commit
12577bfdb9
3 changed files with 5 additions and 5 deletions
|
|
@ -31,7 +31,7 @@ publicPath = path.join(root, 'public');
|
|||
maxAge: ONE_YEAR
|
||||
},
|
||||
store: new MongoStore({
|
||||
db: 'habitrpg',
|
||||
url: 'mongodb://test:test@staff.mongohq.com:10024/habitrpg',
|
||||
collection: 'express-sessions'
|
||||
})
|
||||
})).use(app.session()).use(app.router()).use(expressApp.router).use(serverError(root));
|
||||
|
|
@ -48,6 +48,6 @@ exports.store = app.createStore({
|
|||
listen: server,
|
||||
db: {
|
||||
type: 'Mongo',
|
||||
uri: 'mongodb://localhost/habitrpg'
|
||||
uri: 'mongodb://test:test@staff.mongohq.com:10024/habitrpg'
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "habitrpg",
|
||||
"description": "",
|
||||
"version": "0.0.0-17",
|
||||
"version": "0.0.0-25",
|
||||
"main": "./server.js",
|
||||
"dependencies": {
|
||||
"derby": "*",
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ publicPath = path.join root, 'public'
|
|||
.use(express.session
|
||||
secret: 'secret_sauce'
|
||||
cookie: {maxAge: ONE_YEAR}
|
||||
store: new MongoStore(db: 'habitrpg', collection: 'express-sessions')
|
||||
store: new MongoStore(url: 'mongodb://test:test@staff.mongohq.com:10024/habitrpg', collection: 'express-sessions')
|
||||
)
|
||||
.use(app.session())
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ derby.use(require 'racer-db-mongo')
|
|||
|
||||
exports.store = app.createStore
|
||||
listen: server
|
||||
db: {type: 'Mongo', uri: 'mongodb://localhost/habitrpg'}
|
||||
db: {type: 'Mongo', uri: 'mongodb://test:test@staff.mongohq.com:10024/habitrpg'}
|
||||
|
||||
# Would implement cron here, using node-cron & https://github.com/codeparty/derby/issues/99#issuecomment-6596460
|
||||
# But it's not working
|
||||
|
|
|
|||
Loading…
Reference in a new issue