Mojolicious::Plugin::Export::Git - Export a Mojolicious site to a Git repository
version 0.003
use Mojolicious::Lite;
get '/' => 'index';
get '/secret' => 'secret';
plugin 'Export::Git' => {
pages => [qw( / /secret )],
branch => 'gh-pages',
};
app->start;
Deploy a Mojolicious webapp to a Git repository.
This plugin requires Git version 1.7.2 (released July 21, 2010) or later.
This class inherits from Mojolicious::Plugin::Export and adds the following attributes:
The Git branch to deploy to. Defaults to "master". If you're building a Github Pages site for a project, you probably want to use the "gh-pages" branch.
The name of the remote to deploy to. Defaults to 'origin'.
If true, will completely remove all existing files before exporting. This ensures that any deleted files will be deleted from the repository.
Defaults to true if "branch" isn't the current branch.
This class inherits from Mojolicious::Plugin::Export and adds the following methods:
Mojolicious::Plugin::Export, Git::Repository
Doug Bell preaction@cpan.org
This software is copyright (c) 2021 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.