Skip to content

path option doesn't behave well with ember-cli-deploy's development workflow #48

@sumeetattree

Description

@sumeetattree

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions