I am using this addon with ember-cli-deploy's development workflow. I have 3 different env files for different environments: .env.deploy.${env}.
Here's the config/dotenv.js contents:
/* eslint-env node */
module.exports = function(env) {
return {
clientAllowedKeys: [
'API_HOST',
'ASSET_HOST',
'REDIS_URL',
'SOCKET_URL',
'S3_BUCKET_NAME',
'AWS_REGION',
],
path: `./.env.deploy.${env}`
}
}
Running ember s works fine for the development environment but ember deploy staging and ember deploy production commands seem to not find the correct env file.
Changing the path variable from ./.env.deploy.${env} to ../.env.deploy.${env} does the trick.