Ambley Clee not working after construction

I am working on Ember-Cli. I am creating a project and setting up "ember-cli-build.js", but in the end it does not work. these are my work steps:
1) ember new myapp cd myapp ember server it works fine, and I see my project on " http: // localhost: 4200

2) then run ember build --environment=production and get Built project successfully. Stored in "dist/". Built project successfully. Stored in "dist/". so that it looks like my project was built.

3), then I run this URL in a browser that goes to the dist directory project

 localhost/~/myapp/dist/index.html 

but nothing is visible. I check the console and it seems that "ember" is working, but nothing is displayed on the screen

0
ember-cli
source share
2 answers

I found anwser. primarily on the "environment", change these
locationType: 'hash'

 APP: { rootElement: "#page-base" } 

and then go to "project / app / index.html" and put <div id="page-base"></div>

then create an ember build --environment=production project ember build --environment=production

It works great.

0
source share

It is expected that you will deploy everything in the /dist folder to your server, and this will become the root of your http server. And there is a way to simulate this behavior in your local environment. All you need to do is install http-server globally on your system:

 npm install http-server -g 

then go to the dist folder of your application:

 cd myapp/dist 

and start the http server:

 http-server -o 

What is it. You have a built-in ember application running locally in your browser.

0
source share

All Articles