I would like to build an Ember CLI application assembly for the staging environment. For the production, I would essentially do the same thing as production (minimization, fingerprinting, test exclusion, etc.), but you want to select environment variables for development. To try this, I changed my environment.js file to an account to create:
if (environment === 'development' || environment === 'staging') { ENV.someApiKey = 'test-api-key'; } if (environment === 'production') { ENV.someApiKey = 'production-api-key'; }
When I run ember build --environment=staging , the corresponding ember build --environment=staging environment variables are set, but all other build processes that will be performed for production are not used. Is there a way to tell Ember CLI to build for production, but pick up development environment variables?
source share