百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pages-health-check

> 编程语言
开源

检查您的 GitHub 页面站点是否存在常见的 DNS 配置问题

156 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

检查您的 GitHub 页面站点是否存在常见的 DNS 配置问题

GitHub Pages Health Check

Checks your GitHub Pages site for common DNS configuration issues

Installation

gem install github-pages-health-check

Usage

Basic Usage

ruby
> check = GitHubPages::HealthCheck::Site.new("choosealicense.com")
=> #
> check.valid?
=> true

An invalid domain

ruby
> check = GitHubPages::HealthCheck::Site.new("foo.github.com")
> check.valid?
=> false
> check.valid!
raises GitHubPages::HealthCheck::Errors::InvalidCNAMEError

Retrieving specific checks

ruby
> check.domain.should_be_a_record?
=> true
> check.domain.a_record?
=> true

Getting checks in bulk

…

Getting the reason a domain is invalid

ruby
> check = GitHubPages::HealthCheck::Site.new "developer.facebook.com"
> check.valid?
=> false
> check.reason
=> #
> check.reason.message
=> "CNAME does not point to GitHub Pages"

Repository checks

Repository checks require a personal access or OAuth token with repo or scope. This can be passed as the second argument to the Site or Repository constructors like so:

ruby
check = GitHubPages::HealthCheck::Site.new "github/pages-health-check", access_token: "1234

You can also set OCTOKIT_ACCESS_TOKEN as an environmental variable, or via a .env file in your working directory.

Command Line

…

Issues· 7 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言