Ember-CLI on Apache TOMCAT

I am trying to download my embedded ember-cli server application on Apache tomcat.

I built my application in production mode using

ember build - environmental production

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

The page is blank, although it works great with the embedded server. Using the Ember inspector, I can see the routes that are defined, but cannot 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.

+3
tomcat ember-cli ember-data
source share
1 answer
  • Inside the config/environment.js file there is a locationType property. Set hash value

enter image description here

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

enter image description here

+4
source share

All Articles