NAME
git-deploy - Client for push notification deployment
DESCRIPTION
git-deploy runs as a git client daemon to pull the changes from the git server instantly after a push is triggered.
SYNOPSIS
git deploy [ --build='make -C src/.' ] [ branch ]
branch
If a <branch> is specified, then it will update to that branch. By default, the "master" branch is used.
build
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.
INSTALL
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]$
AUTHOR
Rob Brown <bbb@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2015-2016 by Rob Brown <bbb@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.