var path = require('path'),
    rootPath = path.normalize(__dirname + '/..'),
    env = process.env.NODE_ENV || 'development';

var config = {
  development: {
    root: rootPath,
    app: {
      name: 'teaching-heigvd-tweb-2015-project'
    },
    port: 3000,
    db: 'mongodb://localhost/teaching-heigvd-tweb-2015-project-development'
  },

  test: {
    root: rootPath,
    app: {
      name: 'teaching-heigvd-tweb-2015-project'
    },
    port: 3000,
    db: 'mongodb://localhost/teaching-heigvd-tweb-2015-project-test'
  },

  production: {
    root: rootPath,
    app: {
      name: 'teaching-heigvd-tweb-2015-project'
    },
    port: process.env.PORT,
    db: process.env.MONGOLAB_URI
    //db: 'mongodb://jermoret:_Ma$t3rQ#b0rd@ds045454.mongolab.com:45454/heroku_scf8b718'
  }
};

module.exports = config[env];

@@ -691,97 +691,8 @@
 URI%0A
-    //db: 'mongodb://jermoret:_Ma$t3rQ#b0rd@ds045454.mongolab.com:45454/heroku_scf8b718'%0A
   %7D%0A

Clean config.js