-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Setting Up mongo #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you post your configuration and the error? Also, does it run with the default configuration? |
The problem is in this snippet generated by default config: app.use(express.session({
secret: 'angular-fullstack secret',
store: new mongoStore({
url: config.mongo.uri,
collection: 'sessions'
})
})); Which are lines 46-52 from express.js. app.use(express.session({
secret: 'angular-fullstack secret',
store: new mongoStore({
url: config.mongo.url + '/sessions'
})
})); There is also a 'mongoose_connection' option in mongoStore, which could be used also. |
I think the problem here is in the configuration. In In module.exports = {
root: rootPath,
port: process.env.PORT || 3000,
mongo: {
options: {
db: {
safe: true
}
}
}
}; In module.exports = {
env: 'development',
mongo: {
uri: 'mongodb://localhost/fullstack-dev'
}
}; In module.exports = _.extend(
require('./env/all.js'),
require('./env/' + process.env.NODE_ENV + '.js') || {});
There are two ways to fix this, the easiest is to replace |
Im pretty sure this is a user error. I am trying to connect to a local database and I change the development url in the congfiguration to point to my local instance, but when I run grunt serve I get an error saying required MongoStore option db missing. This looks like an awesome package and thank you for putting it together I just need some help getting started!
The text was updated successfully, but these errors were encountered: