JedWatson / sydjs-site

SydJS Meetup Website
MIT License
535 stars 225 forks source link

process.env.MANDRILL_KEY vs MANDRILL_API_KEY #44

Open simonwidjaja opened 9 years ago

simonwidjaja commented 9 years ago

I'm currently trying to get the emails working... Nothing is happening after I've registered at Mandrill and modified the key accordingly. I stumbled upon an issue with the .env and keystone.init(). The latter uses constant "process.env.MANDRILL_KEY" but the .env declares it as "MANDRILL_API_KEY"

That's not correct, is it? I'm trying to fix it and will report asap.

simonwidjaja commented 9 years ago

UPDATE: It's getting even more confusing. ;) I found this line in keystone's index.js

this.set('mandrill api key', process.env.MANDRILL_API_KEY || process.env.MANDRILL_APIKEY);

MANDRILL_KEY vs. MANDRILL_API_KEY vs. MANDRILL_APIKEY

For noobs like me (and maybe for the even more advanced users/devs) this is an unnecessary obstacle. Just my 2 cents...