Title: rename index.html will lead that the app is not available · Issue #3748 · angular/angular-cli · GitHub
Open Graph Title: rename index.html will lead that the app is not available · Issue #3748 · angular/angular-cli
X Title: rename index.html will lead that the app is not available · Issue #3748 · angular/angular-cli
Description: IMHO, the index file for the app is configurable, and a file named such as main.html can be used if the value for index in angular-cli.json is given. however, rename index.html file will lead that the app is not available after I upgrade...
Open Graph Description: IMHO, the index file for the app is configurable, and a file named such as main.html can be used if the value for index in angular-cli.json is given. however, rename index.html file will lead that ...
X Description: IMHO, the index file for the app is configurable, and a file named such as main.html can be used if the value for index in angular-cli.json is given. however, rename index.html file will lead that ...
Opengraph URL: https://github.com/angular/angular-cli/issues/3748
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"rename index.html will lead that the app is not available","articleBody":"IMHO, the index file for the app is configurable, and a file named such as `main.html` can be used if the value for `index` in `angular-cli.json` is given.\r\nhowever, rename index.html file will lead that the app is not available after I upgrade the angular-cli to beta.24. (while working well in beta.18)\r\n\r\n\u003e --------------------------------------------------------------\r\n\r\n### OS?\r\n\u003e windows 10\r\n\r\n### Versions.\r\n\u003eangular-cli: 1.0.0-beta.24\r\n\u003enode: 6.5.0\r\n\u003e os: win32 x64\r\n\u003e @angular/common: 2.4.1\r\n\u003e @angular/compiler: 2.4.1\r\n\u003e @angular/compiler-cli: 2.4.1\r\n\u003e @angular/core: 2.4.1\r\n\u003e @angular/forms: 2.4.1\r\n\u003e @angular/http: 2.4.1\r\n\u003e @angular/platform-browser: 2.4.1\r\n\u003e @angular/platform-browser-dynamic: 2.4.1\r\n\u003e @angular/platform-server: 2.4.1\r\n\u003e @angular/router: 3.4.1\r\n\r\n\r\n### Repro steps.\r\n\u003e 1. ng init ( npm install)\r\n\u003e 2. rename file `index.html` to `main.html`\r\n\u003e 3. change the value of `index` key to `main.html`\r\n\u003e 4. ng serve (build ok)\r\n\u003e 5. visit the default url (http://localhost:4200)\r\n\r\n```\r\n \"apps\": [\r\n {\r\n \"root\": \"src\",\r\n \"outDir\": \"dist\",\r\n \"assets\": [\r\n \"assets\",\r\n \"favicon.ico\"\r\n ],\r\n \"index\": \"main.html\",\r\n \"main\": \"main.ts\",\r\n \"test\": \"test.ts\",\r\n \"tsconfig\": \"tsconfig.json\",\r\n \"prefix\": \"app\",\r\n \"mobile\": false,\r\n \"styles\": [\r\n \"styles.css\"\r\n ],\r\n \"scripts\": [],\r\n \"environments\": {\r\n \"source\": \"environments/environment.ts\",\r\n \"dev\": \"environments/environment.ts\",\r\n \"prod\": \"environments/environment.prod.ts\"\r\n }\r\n }\r\n ]\r\n```\r\n\r\n### The log given by the failure.\r\n\u003e page shows \"Cannot GET /\"\r\n\u003e http status code is \"404\"\r\n\r\n### Mention any other details that might be useful.\r\n\u003e when switch angular-cli to version `beta.18`, everything goes smoothly.\r\n\r\n\u003e ---------------------------------------------------------------\r\n","author":{"url":"https://github.com/MienDev","@type":"Person","name":"MienDev"},"datePublished":"2016-12-27T02:51:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/3748/angular-cli/issues/3748"}
| 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:4a7ca059-e930-ab62-137e-d49ff833d39a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97F2:2AF88A:575F301:773A692:69782A6C |
| html-safe-nonce | c6b31b05b9984d7abfb0b936f1bdba6d1e123dd3c80beabdce068fe25ca2d45c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0YyOjJBRjg4QTo1NzVGMzAxOjc3M0E2OTI6Njk3ODJBNkMiLCJ2aXNpdG9yX2lkIjoiNzgyNDk0NjgyNzUzMzc1NzAzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5a2d995603f25dbafbaeff5f829fbc13ee4dc4339dd7d78acf8c91a874122e4c |
| hovercard-subject-tag | issue:197637258 |
| 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/3748/issue_layout |
| twitter:image | https://opengraph.githubassets.com/06f7e6f4bd60197f905d0c64fb480cb8a01f718a6fd32799c4e53a2ae893313f/angular/angular-cli/issues/3748 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06f7e6f4bd60197f905d0c64fb480cb8a01f718a6fd32799c4e53a2ae893313f/angular/angular-cli/issues/3748 |
| og:image:alt | IMHO, the index file for the app is configurable, and a file named such as main.html can be used if the value for index in angular-cli.json is given. however, rename index.html file will lead that ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MienDev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| 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 | 8cc3e064910e26648760f573a358cfc07c97b42c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width