Mojolicious::Command::export - Export a Mojolicious website to static files
version 0.008
Usage: APPLICATION export [OPTIONS] [PAGES] ./myapp.pl export ./myapp.pl export /perldoc --to /var/www/html ./myapp.pl export /perldoc --base /url Options: -h, --help Show this summary of available options --to <path> Path to store the static pages. Defaults to '.'. --base <url> Rewrite internal absolute links to prepend base -q, --quiet Silence report of dirs/files modified
Export a Mojolicious webapp to static files.
Default values for the command's options can be specified in the configuration using one of Mojolicious's configuration plugins.
# myapp.conf { export => { # Configure the default pages to export pages => [ '/', '/hidden' ], # The directory to export to to => '/var/www/html', # Rewrite URLs to include base directory base => '/', } }
Mojolicious, Mojolicious::Commands
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2018 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.
To install Mojolicious::Plugin::Export, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Export
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Export
For more information on module installation, please visit the detailed CPAN module installation guide.