Ember-CLI on Apache TOMCAT

↘锁芯ラ 提交于 2020-02-02 06:03:53

问题


I am trying to load my ember-cli inbuilt server application on Apache tomcat.

I built my application in production mode using

ember build --environment production

I moved the files in my /dist folder to my apache tomcat /webapps folder started my apache server but when i go to the URL: "localhost:8081/index.html"

The page is blank although the it works perfect with the inbuilt server. Using Ember inspector i can see the routes that are defined but not able to view any output.

I followed this guide http://thetechcofounder.com/getting-started-with-ember-js-using-ember-cli/#= to create my ember-cli application any help would be great.


回答1:


  1. Inside config/environment.js file, there is a property called locationType. Set its value to hash

  1. Also, manually moving files from your /dist folder is not cool. ;) Instead, you can specify an output-path property in your .ember-cli with the location inside webapps you are trying to move the files to.



来源:https://stackoverflow.com/questions/26177910/ember-cli-on-apache-tomcat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!