Slovo::Command::Author::generate::a2htaccess - Generate a .htaccess for running Slovo under Apache/CGI
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
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.
slovo.cgi
Slovo::Command::Author::generate::a2htaccess inherits all attributes from Slovo::Command and implements the following new ones.
my $description = $a2htaccess->description; $cpanify = $a2htaccess->description('Foo');
Short description of this command, used for the command list.
my $usage = $a2htaccess->usage; $cpanify = $a2htaccess->usage('Foo');
Usage information for this command, used for the help screen.
Slovo::Command::Author::generate::a2htaccess inherits all methods from Slovo::Command and implements the following new ones.
$a2htaccess->run(@ARGV);
Run this command.
Slovo,Mojolicious::Command "Adding-commands-to-Mojolicious" in Mojolicious::Guides::Cookbook, Mojolicious::Guides, https://слово.бг.
To install Slovo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Slovo
CPAN shell
perl -MCPAN -e shell install Slovo
For more information on module installation, please visit the detailed CPAN module installation guide.