git-deploy - Client for push notification deployment
git-deploy runs as a git client daemon to pull the changes from the git server instantly after a push is triggered.
git deploy [ --build='make -C src/.' ] [ branch ]
If a <branch> is specified, then it will update to that branch. By default, the "master" branch is used.
The --build argument is any command you want to execute after any files are pulled or updated from git. By default, no command is run.
As super user:
[root@deploy-host ~]# wget https://raw.githubusercontent.com/hookbot/git-server/master/git-deploy [root@deploy-host ~]# chmod 755 git-deploy [root@deploy-host ~]# mv git-deploy /usr/local/bin/. [root@deploy-host ~]#
As deploy user:
[puller@deploy-host projectz]$ git deploy master [puller@deploy-host projectz]$ echo '0 * * * * cd ~/projectz && git deploy >/dev/null 2>/dev/null' | crontab - [puller@deploy-host projectz]$
Rob Brown <email@example.com>
Copyright 2015-2016 by Rob Brown <firstname.lastname@example.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.