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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Hooknook: Like GitHub Pages for Your Server

17 点作者 samps超过 10 年前

1 comment

rstacruz超过 10 年前
Another way to approach this problem is to use travis-ci. Travis already comes with a full stack of ruby&#x2F;go&#x2F;node&#x2F;python working that you can take advantage of to do any arbitrary commands on `git push`.<p>Just set the language to ruby, change your test command to a script that performs `jekyll build &amp;&amp; rsync`, then encrypt any credentials using travis encryption keys (<a href="http://docs.travis-ci.com/user/encryption-keys/" rel="nofollow">http:&#x2F;&#x2F;docs.travis-ci.com&#x2F;user&#x2F;encryption-keys&#x2F;</a>).<p>Here&#x27;s one article that takes advantage of this exact setup to automatically deploy to a gh-pages repo: <a href="https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@nthgergo&#x2F;publishing-gh-pages-with-travis...</a>
评论 #8448540 未加载