Jan Henning Thorsen > Toadfarm > Toadfarm::Plugin::Reload

Download:
Toadfarm-0.44.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

Toadfarm::Plugin::Reload - Reload toadfarm with new code

DESCRIPTION ^

This Mojolicious plugin allow the "Toadfarm" server to restart when a resource is hit with a special JSON payload. The payload need to be compatible with the post-receive-hook github use.

SETUP ^

CONFIG ^

This is a config template for Toadfarm:

  {
    apps => [...],
    plugins => [
      Reload => {
        path => '/some/secret/path',
        repositories => [
          {
            name => 'cool-repo',
            branch => 'some-branch',
            path => '/path/to/cool-repo',
            remote => 'whatever', # defaults to "origin"
          },
        ],
      },
      # ...
    ],
  }

Details:

METHODS ^

register

  $self->register($app, \%config);

See "SYNOPSIS" for %config parameters.

AUTHOR ^

Jan Henning Thorsen - jhthorsen@cpan.org

syntax highlighting: