-1

这些步骤曾经奏效。首先创建存储库:

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-pages 分支中的所有文件:

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 

还。

想法?

4

1 回答 1

1

我是 angular-cli-ghpages 的作者。参数的组合使用--cname--base-href没有预期。

如果您不想使用自己的域,这应该可以工作

ng deploy --base-href=/help-service-parts/

这是您在拥有自己的域时设置的内容:

ng deploy --cname=help-service-parts.fireflysemantics.com
于 2020-03-14T22:48:40.890 回答