A
A
Alexey Aristov2016-05-12 20:44:32
JavaScript
Alexey Aristov, 2016-05-12 20:44:32

How to do a build for an Ember application?

Installed Node.js and ember-cli.
Created an empty test project.
Launched through

Ember's

The address localhost:4200
became available in the browser. The page displays
Welcome to Ember

I'm trying to build as written in https://guides.emberjs.com/v2.5.0/getting-started/...
>ember build --env
Running production without elevated rights. Running Ember CLI "as Administrator" increases performance significantly.
See ember-cli.com/user-guide/#windows for details.
Built project successfully. Stored in "dist/".
Sizes the File:
- ember-test-73dbd5b3afad7b216b154b74010e2663.js: 4.81 KB Download now (1.46 KB Download now a gzipped)
- ember-test-d41d8cd98f00b204e9800998ecf8427e.css: 0 Bed
and - vendor-d41d8cd98f00b204e9800998ecf8427e.css: 0 Bed
and - vendor-ef159bc608efff575c24c5e13c2d1218.js: 689.61 KB Download now (179.82 KB gzipped)

A dist folder is created inside the project. There is an index.html file in the folder. I
open the file in the browser - there is no "Welcome to Ember" inscription. I expected it to be.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Aristov, 2016-05-16
@aristov

It turned out that the web page starts working if you open dist not locally, but through the browser.
I copied the contents of dist to D:\WebServers\home\ember\www, restarted Denwer (Apache), opened the local address of ember and saw the expected "Welcome to Ember" message.
In order for the "secondary pages" of the ember application to work under Apache, you need to configure a single entry point in Apache. I took a working example here: discuss.emberjs.com/t/ember-ember-cli-and-apache/7755

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question