NAME
Slovo::Command::Author::generate::a2htaccess - Generate a .htaccess for running Slovo under Apache/CGI
SYNOPSIS
Usage: slovo [OPTIONS]
# Default values.
slovo generate a2htaccess
# Custom values
slovo generate a2htaccess -r /home/me/www --cgi_script
index
.cgi
Options:
-h, --help Show this summary of available options
-r, --docroot Defaults to
$app
->home/..
-s, --cgi_script Defaults to
$app
->moniker.cgi
DESCRIPTION
Slovo::Command::Author::generate::a2htaccess will generate a .htaccess for running Slovo under Apache/CGI. Although Slovo performs best as a daemon run by hypnotoad, it can as well be used on a cheap shared hosting. When the script slovo.cgi
is run it will dump a static page which later will be loaded by apache. The .htaccess adds settings for Apache2 to handle all requests. This way Slovo can be used as a static site generator. This is completely enough for bloggers.
ATTRIBUTES
Slovo::Command::Author::generate::a2htaccess inherits all attributes from Slovo::Command and implements the following new ones.
description
my
$description
=
$a2htaccess
->description;
$cpanify
=
$a2htaccess
->description(
'Foo'
);
Short description of this command, used for the command list.
usage
my
$usage
=
$a2htaccess
->usage;
$cpanify
=
$a2htaccess
->usage(
'Foo'
);
Usage information for this command, used for the help screen.
METHODS
Slovo::Command::Author::generate::a2htaccess inherits all methods from Slovo::Command and implements the following new ones.
run
$a2htaccess
->run(
@ARGV
);
Run this command.
SEE ALSO
Slovo,Mojolicious::Command "Adding-commands-to-Mojolicious" in Mojolicious::Guides::Cookbook, Mojolicious::Guides, https://слово.бг.