Need to change the root of src in index.html
I don't know where else to create this, I didn't see a message board.
I'm trying to deploy my application, but in order to run in my container I need to change all the src tags in the script node of index.html to have a prefix my/path/root/
In looking at the documentation I have tried to specify the base href and that didn't work, and I have not found any information about environments that might be able to effect index.html.
Thanks for any input.
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Windows 10
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here: angular-cli: 1.0.0-beta.19-3 node: 4.6.1 os: win32 x64
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
The log given by the failure.
Normally this include a stack trace and some more information.
Mention any other details that might be useful.
Thanks! We'll be in touch soon.
By deploy do you mean ng github-pages:deploy or are you running ng build -prod and then uploading everything in /dist to a server?
If github-pages, try ng github-pages:deploy -bh /your/custom/path/
Else if you're uploading custom, edit index.html base href:
<base href="/your/custom/path/">
Or generate it via ng build -prod -bh /your/custom/path/
Dupe of https://github.com/angular/angular-cli/issues/2276. Work ongoing in https://github.com/angular/angular-cli/pull/3285
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.