substance / notes

Real-time collaborative notes editing.
Other
21 stars 5 forks source link

Create proper config environment #78

Closed michael closed 8 years ago

michael commented 8 years ago

We just want to be able to do:

var config = require('../config');

In Mail.js

var sender = config.mailSender
var mailgunCredentials = {
  user: config.mailgunUser,
  pass: config.mailgunPassword
};

In config.js

module.exports = {
  mailgunUser: process.env.MAILGUN_USER,
  ...
};
Integral commented 8 years ago

Done via npm config.