Title: `ng serve --deploy-url / --base-url / --public-host` doesn't affect live-reload paths · Issue #6932 · angular/angular-cli · GitHub
Open Graph Title: `ng serve --deploy-url / --base-url / --public-host` doesn't affect live-reload paths · Issue #6932 · angular/angular-cli
X Title: `ng serve --deploy-url / --base-url / --public-host` doesn't affect live-reload paths · Issue #6932 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. $ ng "--version" _ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _` | |...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. $ ng "--version" _ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. $ ng "--version" _ _ ____ _ ___ / \ _ __ __ _ ...
Opengraph URL: https://github.com/angular/angular-cli/issues/6932
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ng serve --deploy-url / --base-url / --public-host` doesn't affect live-reload paths","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n\u003c!--\r\nOutput from: `ng --version`.\r\nIf nothing, output from: `node --version` and `npm --version`.\r\n Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)\r\n-->\r\n```\r\n$ ng \"--version\"\r\n _ _ ____ _ ___\r\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\r\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | |\r\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | |\r\n/_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\r\n |___/\r\n@angular/cli: 1.1.2\r\nnode: 6.10.1\r\nos: darwin x64\r\n@angular/common: 4.2.3\r\n@angular/compiler: 4.2.3\r\n@angular/core: 4.2.3\r\n@angular/forms: 4.2.3\r\n@angular/http: 4.2.3\r\n@angular/platform-browser: 4.2.3\r\n@angular/platform-browser-dynamic: 4.2.3\r\n@angular/router: 4.2.3\r\n@angular/cli: 1.1.2\r\n@angular/compiler-cli: 4.2.3\r\n```\r\n\r\nmacOS 10.12.5\r\n\r\n\r\n### Repro steps.\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\nWhen running `ng serve` inside a subdirectory (`--deploy-url /app1/ --base-url /app1/`) the live reload setup is still served from the root url.\r\nWhen developing two angular apps on the same host/port (behind a reverse proxy for example), this is problematic.\r\n\r\nI thought setting `--public-host http://mydevserver/app1/` would help, but it does not seem to affect live reload.\r\n\r\n\r\n### The log given by the failure.\r\n\u003c!-- Normally this include a stack trace and some more information. -->\r\nConsole errors:\r\nzone.js:2263 GET http://devserver/app1/info?t=1499685597179 404 (Not Found)\r\n\r\n\r\n### Desired functionality.\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nSetting `--public-host` should also set up live-reload to operate from the same URL.\r\n\r\n\r\n### Mention any other details that might be useful.\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->\r\n\r\n","author":{"url":"https://github.com/jak","@type":"Person","name":"jak"},"datePublished":"2017-07-10T11:27:31Z","url":"https://github.com/angular/angular-cli/issues/6932"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6398594e-d5a3-6d53-35ab-5a2e513c1b9a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D508:2AF0D8:115E896:15BE613:6B0241BD |
| html-safe-nonce | 08bdbc57319e80da2f3dc18e8d5cd6841851e5520afb31cd25d0f8f5928e3ab4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTA4OjJBRjBEODoxMTVFODk2OjE1QkU2MTM6NkIwMjQxQkQiLCJ2aXNpdG9yX2lkIjoiMzA4MTUxODQ3MjY0ODM0Mzk5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d6910959dee6e7faecc11378c56aecbd69b5c291e36a606b5479c4a35638da48 |
| hovercard-subject-tag | issue:241681312 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/6932/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f31a1cfd33abb10c68f081043c97b5416ea08943d19b4115d60b2a37389d484/angular/angular-cli/issues/6932 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f31a1cfd33abb10c68f081043c97b5416ea08943d19b4115d60b2a37389d484/angular/angular-cli/issues/6932 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. $ ng "--version" _ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jak |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width