关于Apache TOMCAT上的ember.js:Ember-CLI

Ember-CLI on Apache TOMCAT

我正在尝试将我的ember-cli内置服务器应用程序加载到Apache tomcat上。

我使用

在生产模式下构建了我的应用程序

ember build --environment production

我将/ dist文件夹中的文件移动到我的apache tomcat / webapps文件夹中,启动了我的apache服务器,但是当我转到URL:" localhost:8081 / index.html"

该页面为空白,尽管它可以与内置服务器完美配合。
使用Ember检查器,我可以看到已定义的路由,但无法查看任何输出。

我遵循了本指南http://thetechcofounder.com/getting-started-with-ember-js-using-ember-cli/#=
创建我的ember-cli应用程序会有很大帮助。


  • config/environment.js文件中,有一个名为locationType的属性。将其值设置为hash
  • enter