The git hook that can be used for things like that is the post-receive or post-update script. Doing a search on 'git post-receive hook' or 'git post-update hook' results in a number of useful links. Many if not all of them use a git repo directly for things like a remotely deployed web site. I already maintain many of my websites as branches in a git repository so that will be quite useful for me but I'm not sure that approach will work for something like the SourceForge projects. In the case where one cannot or does not want to maintain a git repository at the base of web site directory, perhaps something like 'git archive' or just doing a 'git checkout -f' (saw examples of both) could be used to do an export of the relevant files.
In general; searching on http://stackoverflow.com results in a lot of useful links. For instance, one approach can be found at http://stackoverflow.com/questions/7331519/find-git-branch-name-in-post-update-hook, which also has some other related links.
Others I found interesting:
- http://ryanflorence.com/deploying-websites-with-a-tiny-git-hook/
- http://danbarber.me/using-git-for-deployment/
- http://blog.darkpan.com/article/2/Git-post-update-hook--restart-webserver.html
- http://toroid.org/ams/git-website-howto
- http://cuppster.com/2011/01/30/using-git-to-remotely-install-website-updates/
- http://stackoverflow.com/questions/460892/exporting-files-from-hook-in-bare-git-repository
Casino Review – Bet £10 Get £20 + 100 Free Spins
ReplyDeleteOnline air jordan 18 retro red suede order Casino Review ✓ Learn about the Bet £10 casino air jordan 18 retro to me bonus and how to order air jordan 18 retro yellow suede free spins with air jordan 18 retro yellow suede to me our air jordan 18 retro shop detailed review.