I’ve built an ember app recently, started on a local machine using ember-cli, everything works great until I deploy this app on a debian server.
On local machine, I can access an url like
http://locahost:4200/posts/new directly, but on server this will return me a 404 error, but the root url works both fine. In addition, if I enter the root url first, then transition to
/posts/new, it works as it should be.
I’ve also tried to find some instructions in ember guides, but unfortunately the only thing seems relevant is just one sentence:
Keep in mind that your server must serve the Ember app at all the routes defined here.
But how exactly? What should I do to make it right? Hope someone can give me some hints, simple examples would be better, thanks.
FYI, I serve this app by using nginx, and rails as api backend service.