Sören Bleikertz
30 Dec 2009

Website Deployment with Git

Website Deployment with Git

Besides keeping my blog in a version control system, I also want to keep my website in a repository. For this use case a distributed VCS is a good choice, because we can keep a repository on the workstation and one on the server, and push updates to the server. I choose git for this use case and this website provides an easy way to achieve pushing updates to the server and deploying the version controlled website using a post-receive hook script. It worked flawlessly for me and a minor adjustment of the hook script would be to fix the permissions of the deployed files, so they are only readable by the webserver.