const milieu = require('milieu');

const config = milieu('<%= serverName %>', {
  environment: 'dev',
  server: {
    port: 8080
  },
  mongo: {
    url: 'mongodb://localhost/<%= databaseName %>'
  }
});


module.exports = config;

const milieu = require('milieu');

const config = milieu('<%= serverName %>', {
  environment: 'dev',
  server: {
    port: '${PORT}' || 8080
  },
  mongo: {
    url: '${MONGO_DB_URI}' || 'mongodb://localhost/<%= databaseName %>'
  }
});


module.exports = config;

Add app port and mongodb uri as env vars with defaults for local.
Add app port and mongodb uri as env vars with defaults for local.
