TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hooknook: Like GitHub Pages for Your Server

17 pointsby sampsover 10 years ago

1 comment

rstacruzover 10 years ago
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 未加载