The Hook
·1 min
Referring to previous post, this is the post-receive script I used for the blog.
Actually I forgot to attach this to the previous post, so I decide to just create another post for this.
{% include_code post-receive lang:sh post-receive %}
The locale entries is needed by jekyll, since it’s not set at git/www user environment
Also don’t forget to add this entry to sudoers
git ALL=(www) NOPASSWD: ALL
Basically, it tells sudo to allow git to act as www without any password.