Skip to content

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

Description

@afn

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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