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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
The locale entries is needed by jekyll, since it’s not set at
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.