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
unify ember fastboot --watch + ember server #274
Comments
This was referenced Oct 7, 2016
Closed
9 tasks
12 tasks
Update: Now that the RFC linked here is implemented and merged in. I'll look at fixing this next. |
11 tasks
WIP PR to fix this issue: #356 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and
are essentially the same feature. Or at the very least
ember server
should also provide fastboot, so that regular development is fastboot aware (catch issues early etc).I believe the crux of the problem, is that there is no public API to make
fastboot
andember serve
work together easily.specifically: https://github.com/ember-cli/ember-cli/blob/master/lib/tasks/server/middleware/serve-files/index.js#L22 is a black box, but we most likely want to make "serving" the actually assets intercept-able.
Now in theory, one could remove the entire middleware, but this would largely require reimplementing the entire middleware only to add a small hook, which ultimately will just cause future grief as the two diverge, or as a third feature wants to also provide additional behavior here.
broccoli-middleware is a module we control: https://github.com/ember-cli/broccoli-middleware and can make easily make changes to. Most likely here (but more then likely this whole file will need some refactor to make this work.
The design I believe would work is: "I'm about to serve index.html` tell me what I'm actually supposed to do.
The public handler that would be provided via configurable most likely would look very similar to an express middleware (but promise aware);
Goals:
Stuff to do
Pre-reqs
Acceptance
The text was updated successfully, but these errors were encountered: