--environment is not a valid option
hoIIer opened this issue · comments
new to this and when I tried to use --environment=production
, I got error saying --environment
is not a valid option (--message
was the only one listed)
can you look in your node_modules folder and verify that you're using v0.0.6
? This flag was recently added
shoot i think it was 0.0.4.. thanks!
actually while I have your attention.. I tried for a few hours to get it working and ended up bailing out and just threw a heroku app together (it was for a demo for oss project)...
the issue was I could not get the proj/tests/dummy/config/environment.js file to load.. was there anything special i was supposed to do for that?
it was for a PR for the main repo https://github.com/erichonkanen/ember-cli-simple-auth-token/blob/master/tests/dummy/config/environment.js
I suspect that your environment.js file is loading. Without it, your app would have major issues.
I added The --environment
flag because, for an addon demo page, there's some value to running in "development" (i.e., if you have Pretender simulating API responses like the demo pages of hhff/ember-infinity and truenorth/ember-api-actions and pretender is not enabled in production).
Let me take a look at the demo page for that addon and see what I can do .
that looks totally reasonable to me. If you get snagged again ping me and I'll take a look.