使用 angular-cli-ghpages 将 Angular 应用程序部署到 Github 页面?

Deploying Angular App to Github Pages with angular-cli-ghpages?

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

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/.

但是没有出现在url:

http://fireflysemantics.github.io/help-service-parts/

我设置了 DNS 来解析它:

https://help-service-parts.fireflysemantics.com 

还有。

想法?

我是 angular-cli-ghpages 的作者。不希望参数 --cname--base-href 的组合使用。

如果您不想使用自己的域,这应该有效:

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

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

ng deploy --cname=help-service-parts.fireflysemantics.com