I had a problem for www.gniibe.org. I started this site in 2002.
When needed, I just put some files onto the htmldocs. That was THE publishing process. This is simple process, but this is bad process. Because of this process, the site became unmaintained.
Put everything into repository
In 2011, I decided to maintain the site with Git. New publishing process is very common process for developers as software development (with Git). That is,
- test locally
- push to public
I use following post-receive hook under git/www.gniibe.org.git/:
cd /home/gniibe/www.gniibe.org && env -i git pull; env -i git submodule update if [ -e /tmp/web.pid ]; then kill -HUP `cat /tmp/web.pid`; fi
Second line is to let Unguent reload pages.