Skip to content

ng serve --deploy-url / --base-url / --public-host doesn't affect live-reload paths #6932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jak opened this issue Jul 10, 2017 · 5 comments
Closed

Comments

@jak
Copy link

jak commented Jul 10, 2017

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

$ ng "--version"
    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.1.2
node: 6.10.1
os: darwin x64
@angular/common: 4.2.3
@angular/compiler: 4.2.3
@angular/core: 4.2.3
@angular/forms: 4.2.3
@angular/http: 4.2.3
@angular/platform-browser: 4.2.3
@angular/platform-browser-dynamic: 4.2.3
@angular/router: 4.2.3
@angular/cli: 1.1.2
@angular/compiler-cli: 4.2.3

macOS 10.12.5

Repro steps.

When running ng serve inside a subdirectory (--deploy-url /app1/ --base-url /app1/) the live reload setup is still served from the root url.
When developing two angular apps on the same host/port (behind a reverse proxy for example), this is problematic.

I thought setting --public-host http://mydevserver/app1/ would help, but it does not seem to affect live reload.

The log given by the failure.

Console errors:
zone.js:2263 GET http://devserver/app1/info?t=1499685597179 404 (Not Found)

Desired functionality.

Setting --public-host should also set up live-reload to operate from the same URL.

Mention any other details that might be useful.

@clydin
Copy link
Member

clydin commented Jul 10, 2017

Please see PR #6320

This should be available in the next minor release.

@jak
Copy link
Author

jak commented Jul 10, 2017

Thanks

@jak jak closed this as completed Jul 10, 2017
@jak jak reopened this Aug 16, 2017
@jak
Copy link
Author

jak commented Aug 16, 2017

The linked PR appears stale - re-opening issue.

@filipesilva
Copy link
Contributor

Fixed via #6320 (it's merged now).

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants