let path = require('path');
let rootPath = path.normalize(__dirname + '/../../');

const connectionStrings = {
    production: 'mongodb://ilian82:123456@ds113958.mlab.com:13958/proba-db',
    development: 'mongodb://localhost:27017/animalshotel'
};

module.exports = {
    development: {
        rootPath: rootPath,
        db: connectionStrings[process.env.NODE_ENV || 'development'],
        port: process.env.PORT || 3000
    }
};
let path = require('path');
let rootPath = path.normalize(__dirname + '/../../');

const connectionStrings = {
    production: 'mongodb://ilian82:123456@ds113958.mlab.com:13958/proba-db',
    development: 'mongodb://localhost:27017/animalshotel'
};

module.exports = {
    development: {
        environment: process.env.NODE_ENV || 'development',
        rootPath: rootPath,
        db: connectionStrings[process.env.NODE_ENV || 'development'],
        port: process.env.PORT || 3000
    }
};
Add environment property for cloud production.