automatic git deploy
this blog update was deployed automatically
Believe me, it was.
first things first
I put my whole jekyll project on my github page.
Afterwards I installed ruby and the jekyll gem on my ArchLinux webserver.
Normally ruby would install all gems into the $HOME/.gem
directory. Since I was gonna use the http
user to build the homepage, I didn’t want to install the gem into the http directory (/srv/http).
Instead I put it under /usr/lib/ruby/gems
My next step was to clone my git repository into the http home folder.
and modify my nginx.conf
:
finally, make it be cloned and built automatically every hour, without checking if there was a commit or not. Simple but reliable.
Test it simply by removing the _site/categories.html
file and wait for cron to do his magic.
still keeping my todo list
Thanks to this simple modification, my todo list just got a lot shorter:
- I want to create an about page
-
share the code on **github** -
**automatically deploy** this static site on my [DigitalOcean](http://digitalocean.com) vhost - post comments over Disqus