Rex::Apache::Deploy::Git - Deploy applications with Git
This module gives you a simple interface to Git based deployments. It uses git push to upload a given commit to the server.
use Rex::Apache::Deploy qw/Git/; task "deploy", "server1", "server2", sub { my $param = shift; deploy $param->{commit}, path => "/var/www", switch => TRUE; }; #bash# rex deploy --commit=385816 task "rollback", "server1", "server2", sub { my $param = shift; switch_to_version $param->{commit}; }; #bash# rex rollback --commit=138274
To install Rex::Apache::Deploy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rex::Apache::Deploy
CPAN shell
perl -MCPAN -e shell install Rex::Apache::Deploy
For more information on module installation, please visit the detailed CPAN module installation guide.