diff --git a/app/templates/server/config/express.js b/app/templates/server/config/express.js index 47601de59..f04098387 100644 --- a/app/templates/server/config/express.js +++ b/app/templates/server/config/express.js @@ -39,7 +39,10 @@ module.exports = function(app) { secret: config.secrets.session, resave: true, saveUninitialized: true, - store: new mongoStore({ mongoose_connection: mongoose.connection }) + store: new mongoStore({ + mongooseConnection: mongoose.connection, + db: '<%= _.slugify(_.humanize(appname)) %>' + }) })); <% } %> if ('production' === env) {