Jekyll Script

Speaking of jekyll, there’s a way to get git to publish using post-commit hooks, but I like running a little script to do it. It just runs jekyll to build the site, then calls rsync to make it live (it connects to the server over ssh).

#!/bin/sh

echo "running jekyll"
jekyll --no-auto
echo "rsyncing site with blog server"
cd _site && rsync -Cavz --delete . example.com:/var/www/blog.example.com
echo "done"

That’s it…


Related Posts

  1. Jekyll Exclude Files
  2. iPhone/iPad UISearchBar and UISearchDisplayController Asynchronous Example
  3. Daemontools Scripts For Sphinx
  4. SPF Records with Rails and ActionMailer
  5. git fatal empty ident not allowed
You should follow me on Twitter: @patrickxb