Skip to content

Commit

Permalink
feat(server): allow mongo uri env var in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Awk34 committed Jun 13, 2018
1 parent ad92036 commit a46a002
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/app/server/config/environment/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
module.exports = {<% if (filters.mongoose) { %>
// MongoDB connection options
mongo: {
uri: 'mongodb://localhost/<%= lodash.slugify(appname) %>-dev'
uri: process.env.MONGODB_URI || 'mongodb://localhost/<%= lodash.slugify(appname) %>-dev'
},<% } if (filters.sequelize) { %>

// Sequelize connection opions
// Sequelize connection options
sequelize: {
uri: 'sqlite://',
options: {
Expand All @@ -22,5 +22,5 @@ module.exports = {<% if (filters.mongoose) { %>
},<% } %>

// Seed database on startup
seedDB: true
seedDB: true,
};

0 comments on commit a46a002

Please sign in to comment.