angular - 在 github 上面临 Angular-6 部署错误
问题描述
我正在按照本教程使用 github 部署 Angular 应用程序。 https://dzone.com/articles/how-to-deploy-an-angular-application-to-github 最后,我面临这个错误
我用来部署应用程序的命令是:-
npm install -g angular-cli-ghpages
$ ng build --prod --base-href https://sahilkatia.github.io/resume/
(其中 sahilkatia 是我的用户名,resume 是我的存储库名称)
最后
ngh -no-silent
解决方案
这可能是因为您的简历存储库:
https://github.com/sahilkatia/resume/tree/gh-pages/resume
https://github.com/sahilkatia/resume/blob/gh-pages/resume/index.html
gh-pages 分支应直接包含您的简历内容,而不是包含简历内容的文件夹 resume
也就是说,您应该能够index.html
直接访问:
https://github.com/sahilkatia/resume/blob/gh-pages/index.html
推荐阅读
- django - Django:'tag'不是注册的标签库错误
- python - 尝试通过选择特定数据在 Python 中创建 3D 矩阵
- reactjs - 反应中的路由抛出“不允许重复的道具”
- r - 有条件的 withSpinner
- ios - 如何将第二个表视图的值与第一个表视图的单击行分开?
- javascript - Angular 5+:订阅父 Observable 的子组件在取消隐藏时不会获得价值
- java - 执行 SystemJobService 期间的 ANR
- iis - 附加到本地 IIS ASP.Net Core 进程时,Visual Studio 2017 未命中断点
- docker - 如何访问 docker-in-docker 内的企业 docker hub?
- javascript - 仅显示有限数量的包含 HTML 的文本