TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Host your status page on GitHub

248 点作者 jayfk大约 9 年前

12 条评论

wanda大约 9 年前
I use Github Pages for my status page too.<p>Not something I use for websites&#x2F;web apps I develop for clients, but for my own irrelevant website, I go as far as to cheat and use the following:<p><pre><code> &lt;img src=&quot;https:&#x2F;&#x2F;des.tination.server&#x2F;img&#x2F;1px.gif&quot; onload=&quot;statusOk()&quot; onerror=&quot;statusDown()&quot; alt=&quot;&quot;&gt; &lt;script&gt; function statusOk() { &#x2F;&#x2F; do something involving green and check marks } function statusDown() { &#x2F;&#x2F; do something involving red... and crosses } &lt;&#x2F;script&gt; </code></pre> (Obviously you have to prevent caching)
评论 #11238904 未加载
ThePhysicist大约 9 年前
You could also poll the Github API direclty on the client side via Javascript&#x2F;jQuery (without giving the client an access token obviously) to display the status information, like that you could simply update issues on a public Github repo and the information would change accordingly on the site. With proper E-Tag checking, Github won&#x27;t even count repeated API queries against the rate limit, which means that you could have the client automatically update the information in the frontend every few seconds.<p>With Gitboard I use the Github API in this way to display issues in a Kanban board, which works really nicely: <a href="https:&#x2F;&#x2F;adewes.github.io&#x2F;gitboard" rel="nofollow">https:&#x2F;&#x2F;adewes.github.io&#x2F;gitboard</a>
评论 #11239804 未加载
herbst大约 9 年前
Github recently is more offline than my Servers. Not sure if that would really help.
评论 #11239004 未加载
jon-wood大约 9 年前
Keep in mind this is at its core just a static site generator, there&#x27;s nothing stopping you from pushing the generated site to S3, or even just a random server, and hosting it there instead if you don&#x27;t like Github&#x27;s uptime.
评论 #11239241 未加载
评论 #11238784 未加载
donnfelker大约 9 年前
Personally I prefer a service like <a href="http:&#x2F;&#x2F;status.io" rel="nofollow">http:&#x2F;&#x2F;status.io</a> - it&#x27;s one less thing I need to maintain&#x2F;etc.<p>Not to mention GitHub has had more than its fair share of outages.
jbrooksuk大约 9 年前
Wow...<p>This looks <i>very</i> similar to Cachet [1]. Did you take inspiration from it?<p>[1] <a href="https:&#x2F;&#x2F;cachethq.io" rel="nofollow">https:&#x2F;&#x2F;cachethq.io</a>
评论 #11238745 未加载
评论 #11238290 未加载
alexcroox大约 9 年前
Are there any decent open source status page systems that do the monitoring for you? I&#x27;m just looking for a basic ping or JSON response to automatically update the page for me. I&#x27;d like for the page to show there&#x27;s a problem before I manually work it out for myself!
评论 #11239126 未加载
javery大约 9 年前
But seriously - statuspage.io is amazing for this and super cheap.
评论 #11240171 未加载
评论 #11244175 未加载
bliti大约 9 年前
I built a static status page that you can host anywhere. I use it for various systems. Its ugly, but works as required. Uses bootstrap and jquery. so you can go crazy with it. Everything is self contained. No need to maintain it. Does need an endpoint for the status page to ping. YMMV.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;bliti&#x2F;status-page" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bliti&#x2F;status-page</a>
stanislavb大约 9 年前
And here it is a follow-up post with some shared experience: <a href="https:&#x2F;&#x2F;medium.com&#x2F;@stanbright&#x2F;how-to-set-up-a-free-status-page-on-github-5fc92f63d0f6#.amipcrr73" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@stanbright&#x2F;how-to-set-up-a-free-status-p...</a>
iqonik大约 9 年前
Nice &quot;hack&quot;. I&#x27;m using statuspage.io for the notification side of things but can see why this is a very decent free alternative.
capote大约 9 年前
Host my status page on a site that is down about half the time? Hah
评论 #11240891 未加载