vendredi 9 octobre 2015

Serving ember app from IIS resulting in UnrecognizedURLError

I am trying to serve an ember app from IIS.

I created a new app using ember new my-app and then ran ember build --environment production. This generated the files in the dist directory as expected.

On the IIS side, I added a new website on the server and mapped the dist folder from the last step.

Now, when I navigate to localhost/index.html I get a blank page.

I checked the source of the page and the js files are being served correctly as expected. This would mean that it's the templates that are not being retrieved correctly. In the chrome inspector console there is an exception which says Uncaught: UnrecognizedURLError: /index.html. The ember inspector says 'Ember application not detected!'.

I've tried the solutions mentioned here, but none has worked for me.

Has anyone else experienced this problem/know how to fix this?




Aucun commentaire:

Enregistrer un commentaire