NAME
Slovo::Command::Author::generate::novy_dom - Generate database records, files and pages for a new domain
SYNOPSIS
Usage: slovo [OPTIONS]
# Default values.
slovo generate novy_dom -n example.com
# Custom values
slovo generate novy_dom -n test.com -o краси
Options:
-h, --help Show this summary of available options
-n, --name Mandatory domain name - example.com.
-a, --aliases Domain aliases. Quoted comma separataed string of domain
names. Defaults to "www.$name,dev.$name,qa.$name"
-o, --owner Username of the owner of this domain in the database.
Defaults to "foo".
-c, --chmod Octal number used as permissions for folders.
Defaults to 0700.
DESCRIPTION
Slovo::Command::Author::generate::novy_dom will make a directory for a new domain under $app->config->{domove_root}
(usually $app->home->child('domove')
), copy static files and create the root page, and a page "About" for the new domain.
If the owner is not specified it will be set to 'foo'. The foo
's password will be changed to a random string and will be displayed to you. The foo user will be enabled for one hour so you can login via the web interface and change ownership of the domain and created pages to another user. This is so for security reasons.
If you use another owner, the owner must exist in the database. Please make sure you have created an owner for the new domain. The owner will be made admin
so it can manage the domain. It will be disabled after one hour for security reasons. Set it's stop_date to 0 to prevent this. All domain owners become admins. Please keep the number of admins low.
ATTRIBUTES
Slovo::Command::Author::generate::novy_dom inherits all attributes from Slovo::Command and implements the following new ones.
description
my $description = $novy_dom->description;
$cpanify = $novy_dom->description('Foo');
Short description of this command, used for the command list.
usage
my $usage = $novy_dom->usage;
$cpanify = $novy_dom->usage('Foo');
Usage information for this command, used for the help screen.
METHODS
Slovo::Command::Author::generate::novy_dom inherits all methods from Slovo::Command and implements the following new ones.
run
$novy_dom->run(@ARGV);
Run this command.
SEE ALSO
Slovo,Mojolicious::Command "Adding-commands-to-Mojolicious" in Mojolicious::Guides::Cookbook, Mojolicious::Guides, https://слово.бг.