这些步骤过去起作用。首先创建存储库:
https://github.com/fireflysemantics/help-service-parts为它添加遥控器
git remote add origin git@github.com:fireflysemantics/help-service-parts.git添加angular-cli-ghpages
ng add angular-cli-ghpages并部署:
ng deploy --base-href=https://help-service-parts.fireflysemantics.com/ --cname=help-service-parts.fireflysemantics.com这样做之后,它确实创建了cname记录,我在gp页面分支中看到了所有文件:
https://github.com/fireflysemantics/help-service-parts但是,当查看设置时,自定义域字段不会填充cname域,它表示站点已准备好发布:
Your site is ready to be published at http://fireflysemantics.github.io/help-service-parts/.但它没有出现在网址上:
http://fireflysemantics.github.io/help-service-parts/
我已经设置了DNS来解决这个问题:
https://help-service-parts.fireflysemantics.com 还有。
有什么想法?
发布于 2020-03-14 22:48:40
我是“角质”一书的作者。不期望参数--cname和--base-href的组合使用。
如果您做了而不是想要使用您自己的域,这应该是可行的:
ng deploy --base-href=/help-service-parts/当你拥有自己的域名时,这就是你设定的:
ng deploy --cname=help-service-parts.fireflysemantics.comhttps://stackoverflow.com/questions/59588110
复制相似问题