Skip to content

Instantly share code, notes, and snippets.

@AntonioErdeljac
Last active September 19, 2018 15:28
Show Gist options
  • Save AntonioErdeljac/ed5d1dacb90e516db68fb497228779f8 to your computer and use it in GitHub Desktop.
Save AntonioErdeljac/ed5d1dacb90e516db68fb497228779f8 to your computer and use it in GitHub Desktop.
const domain = process.env.DOMAIN || 'localhost';
const port = process.env.PORT || 5000;
const protocol = process.env.PROTOCOL || 'http://';
module.exports.domain = domain;
module.exports.port = port;
module.exports.protocol = protocol;
module.exports.serverUrl = process.env.SERVER_URL || `${protocol}${domain}${port ? `:${port}` : ''}`;
module.exports.mongo = {
uri: 'mongodb://127.0.0.1:27017/HerokuDeployment',
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment