Re: Git archiving only branch work
- From
- Thomas Koch <thomas@koch.ro>
- Date
- Nov 13, 2014, 16:10 UTC
- Message-ID
- <201411131710.12409.thomas@koch.ro>
- In-Reply-To
- <5464a4e8.4a0.2bfa0e00.3067f800@geldenhuys.co.uk>
If your servers run a Unix and you can install Git on the servers than you might want to try the install script we use in our company:
https://github.com/comsolit/comsolit_deploy
There's a bare git repository on the server and a post-receive hook that exports the content of the git repository in a predefined folder. After that a symlink is switched to the new version.
You can run hook scripts after the export (checkout) and after the switch.
The script lacks documentation... (PRs welcome!) But it is unit tested!
Regards, Thomas Koch