OS?
Ubuntu Linux 16.04
Versions.
angular-cli: 1.0.0-beta.15
node: 6.3.1
os: linux x64
Repro steps.
When I'm developing everything works as expected (domain http://localhost:4200) but when I build for production and deploy to my server, I'm don't have the app in the root path, it's something like http://www.mydomain.com/my-ng-app and in this case, the app tries to load the bundles form the root url, obviously getting 404 responses. For example, tries to load http://www.mydomain.com/main.9c5e616854294854119f.bundle.js when that file is actually in www.mydomain.com/my-ng-app/main.9c5e616854294854119f.bundle.js
The log given by the failure.
404 for all .js files.
Mention any other details that might be useful.
I already tried changing <base href="/"> to <base href="/my-ng-app"> but still doesn't work.
OS?
Ubuntu Linux 16.04
Versions.
angular-cli: 1.0.0-beta.15
node: 6.3.1
os: linux x64
Repro steps.
When I'm developing everything works as expected (domain
http://localhost:4200) but when I build for production and deploy to my server, I'm don't have the app in the root path, it's something likehttp://www.mydomain.com/my-ng-appand in this case, the app tries to load the bundles form the root url, obviously getting404responses. For example, tries to loadhttp://www.mydomain.com/main.9c5e616854294854119f.bundle.jswhen that file is actually inwww.mydomain.com/my-ng-app/main.9c5e616854294854119f.bundle.jsThe log given by the failure.
404 for all
.jsfiles.Mention any other details that might be useful.
I already tried changing
<base href="/">to<base href="/my-ng-app">but still doesn't work.