3
votes

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
i have the same problem, you could find the answer on Embli-Cli Not work after Building - Shayan

1 Answers

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

enter image description here

  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.

enter image description here