You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can become tedious to prefix every command with the correct environment variables over and over again. At the moment for example if you have an experiment running, you have to prefix the ember command with that experiment name, e.g. EMBER_CLI_MODULE_UNIFICATION=true ember serve.
As those ENV variables depend on their project, it makes most sense to define them once for that project and use ember commands as usual. .ember-cli looks like a good place for me to define them and could look like this:
Alternatively read in a .env file(s) where variables can be defined. There is kind of a standard here I guess? Which is used by CI/CD services. I haven't run enough research on this one to make a clear statement other than "more research needed".
+1 to this. I have been running a module unification project myself and this often gets in the way.
I feel .ember-cli is the right place for this as .env files are generally ignored in source control. There can be an experiments field in the .ember-cli file that we can make use of here.
I am willing to work on this if this seems reasonable.
I feel .ember-cli is the right place for this as .env files are generally ignored in source control. There can be an experiments field in the .ember-cli file that we can make use of here.
Hm, it looks like it was. Thanks for the link! I think I'll keep the issue closed for a couple of reasons. One is that module unification has been dropped for a long time, the other is that usage of dotenv is widespread and that seems like a better solution than putting more functionality into .ember-cli.
Activity
astronomersiva commentedon Jul 11, 2018
+1 to this. I have been running a module unification project myself and this often gets in the way.
I feel
.ember-cliis the right place for this as.envfiles are generally ignored in source control. There can be anexperimentsfield in the.ember-clifile that we can make use of here.I am willing to work on this if this seems reasonable.
cc: @rwjblue
stefanpenner commentedon Jul 11, 2018
Sounds reasonable to me.
gossi commentedon Nov 14, 2018
Solution is in #8157
locks commentedon Feb 10, 2022
Fix has been merged!
btecu commentedon Feb 10, 2022
It looks like it got reverted: #8008.
locks commentedon Feb 10, 2022
Hm, it looks like it was. Thanks for the link! I think I'll keep the issue closed for a couple of reasons. One is that module unification has been dropped for a long time, the other is that usage of dotenv is widespread and that seems like a better solution than putting more functionality into
.ember-cli.