The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Rex::Apache::Deploy::Git - Deploy applications with Git

DESCRIPTION

This module gives you a simple interface to Git based deployments. It uses git push to upload a given commit to the server.

SYNOPSIS

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