-
Notifications
You must be signed in to change notification settings - Fork 205
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
Setting consider_all_requests_local to true launches build_and_watch in non-dev environments #361
Comments
@kayakyakr thanks for opening this issue after resolving your strange behavior. I'm a little confused by your suggestion: Rails.env.development? || rails_config_for(:consider_all_requests_local) Wouldn't This behavior should definitely be explained better -- I'll likely open a PR against the README. What is your particular use case? You want to treat your |
Hm, you're right, that doesn't really gain much. It actually just prioritizes consider_all_requests_local over environment. Ideally, for me, anything that isn't development would come through as production, regardless of the state of consider_all_requests_local. The main purpose of that is to display rails server errors instead of generic errors, no? Ember-cli doesn't have quite as much knowledge of dealing with non-standard environments as rails, from what I understand? |
Closes [#361]. When the Rails environment is neither `test` nor `development` ([two environments handled by EmberCLI out-of-the-box][ember-cli-env]), treat it as `production`. [#361]: #361 [ember-cli-env]: http://ember-cli.com/user-guide/#Environments
Closes [#361]. When the Rails environment is neither `test` nor `development` ([two environments handled by EmberCLI out-of-the-box][ember-cli-env]), treat it as `production`. [#361]: #361 [ember-cli-env]: http://ember-cli.com/user-guide/#Environments
@kayakyakr does #366 seem like reasonable behavior? |
Looks good to me. |
Closes [#361]. When the Rails environment is neither `test` nor `development` ([two environments handled by EmberCLI out-of-the-box][ember-cli-env]), treat it as `production`, unless an `EMBER_ENV` is specified. [#361]: #361 [ember-cli-env]: http://ember-cli.com/user-guide/#Environments
Closes [#361]. When the Rails environment is neither `test` nor `development` ([two environments handled by EmberCLI out-of-the-box][ember-cli-env]), treat it as `production`, unless an `EMBER_ENV` is specified. [#361]: #361 [ember-cli-env]: http://ember-cli.com/user-guide/#Environments
Closes [#361]. When the Rails environment is neither `test` nor `development` ([two environments handled by EmberCLI out-of-the-box][ember-cli-env]), treat it as `production`, unless an `EMBER_ENV` is specified. [#361]: #361 [ember-cli-env]: http://ember-cli.com/user-guide/#Environments
Closes [#361]. When the Rails environment is neither `test` nor `development` ([two environments handled by EmberCLI out-of-the-box][ember-cli-env]), treat it as `production`, unless an `EMBER_ENV` is specified. [#361]: #361 [ember-cli-env]: http://ember-cli.com/user-guide/#Environments
This bit of code seems to default the environment to 'development' and overrides when consider_all_requests_local is set to true in other environments.
This is particularly a gotcha in a staging environment which may be running requests as local. I don't know if it would be beneficial to remove that dependency, though. Have to watch that, as I had 4
build --watch
instances running through various staging deploys.It might be better to default to production for the ember env:
The text was updated successfully, but these errors were encountered: