I am new to Ember and I have a deployment question.
My server infrastructure is the following:
I have a frontend server (FE) that advertises the URL for an Ember web application named “baloo” at the URL http://foo.com/baloo (names are made up).
FE then redirects all http queries to a backend server (BE), where the webapp is actually hosted. BE serves the baloo app with root URL “/”.
For the whole thing to run smooth, pages served by FE should contain only links based at “/baloo”.
(Which is to say: I do reverse proxying via FE to BE).
Well, it is not clear to me if an Ember app can support this setup; I am actually trying to deploy an app called “discourse”, a rails forum ( discourse.org ). [EDIT: lol, just noticed that this forum is discourse-powered]
I did some thinkering myself, but I ended up confusing the Ember routing mechanism. I found no way to tell Ember "just pre-pend /baloo to all your links, but do not use /baloo as part of your routing path".
The other solution I can think of is to setup a subdomain, like http://baloo.foo.com and serve the app from there. But I have to learn DNS :- ) [EDIT: which is what is done in the deployment of this very forum]