Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration is loaded before process.env.EMBER_ENV is set #98

Open
afn opened this issue Dec 11, 2015 · 0 comments
Open

Configuration is loaded before process.env.EMBER_ENV is set #98

afn opened this issue Dec 11, 2015 · 0 comments

Comments

@afn
Copy link

afn commented Dec 11, 2015

This code is invoked before process.env.EMBER_ENV has been set, so environment-specific configuration does not work properly.

To reproduce:

ember new my-project
cd my-project
ember install ember-cli-coffeescript
echo 'module.exports = function(environment) {console.log("environment is", environment);};' >config/environment.js
ember build

Prints out:

environment is undefined
version: 1.13.12
Buildingenvironment is development
...

The very first environment is undefined is due to ember-cli-coffeescript.

May be related to #61.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant