Envy is a simple Ember CLI addon that loads environment variables
with dotenv so that you can
reference them inside of ember
commands.
ember install ember-cli-envy
You can optionally configure dotenv
by place a configuration file at config/envy.js
that exports an options hash. The path is passed directly to dotenv.config
after normalizing the path
. For example
module.exports = {
silent: true,
path: '.env.' + process.env.DEPLOY_TARGET
}
If this addon doesn't do what you want please check out ember-cli-dotenv.