NAME
pft init - Initialize a PFT Site
SYNOPSYS
pft init [<options>]
DESCRIPTION
Initialize a PFT Site.
The command generates the pft.yaml configuration file, creates the filesystem structure for a PFT site, a site Home Page and the site templates.
A test configuration is provided by default, and can be later modified by editing the be modified by editing the pft.yaml configuration file.
The pft init command accepts options which will override the default configuration. The options are listed in this document (see CONFIGURATION OPTIONS)
The pft init command can also be used to override an existing configuration by running it on a site which was already initialized. The existing configuration will be respected, except for the overriden keys.
OPTIONS
CONFIGURATION OPTIONS
-
Specify a
Authorconfiguration.The
Authorvalue will be used as defaultAuthorfor all new content files. - --site-title
-
Specify a
SiteTitleconfiguration.The
SiteTitlevalue will be accessible by the template engine, so the title can be shown on all pages. - --site-url
-
Specify a
SiteURLconfiguration.SiteURLis the base URL for the site. This will be used as prefix for all internal URLs. You probably want to specify something likehttp://example.org/path/to/site/. Since pft will not try to guess your protocol scheme, you should put it right. - --home-page
-
Specify a
HomePageconfiguration.HomePagedeclares a Home Page for the site. The page will be generated automatically unless it exists already or the--no-homeis used. - --input-enc
-
Specify a
InputEncconfiguration.InputEncdeclares the default encoding for content files. The encoding of single content files can be redefined by editing their header. - --output-enc
-
Specify a
OutputEncconfiguration.OutputEncdeclares the encoding for output HTML files. - --remote-method
-
Specify a
Remote.Methodconfiguration.Remote.Methodindicates how to upload the compiled content onto a remote machine. Current valid values are:rsync+ssh(default): Use RSync over SSH for sending files.
- --remote-host
-
Specify a
Remote.Hostconfiguration.Remote.Hostis optional, and declares the host name (or ip address) of the remote machine hosting the website. The selected remote method (--remote-methodoption) may require this configuration. - --remote-port
-
Specify a
Remote.Portconfiguration.Remote.Portis optional, and declares a port on the remote machine where a file upload service is running. The value may be used as parameter for different transport protocols, depending on the--remote-methodin use. Sensible defaults are assumed unless diffrently specified.For instance, if using
--remote-method=rsync+ssh, theRemote.Portconfiguration will be used to determine the SSH port, and will default to 22. - --remote-user
-
Specify a
Remote.Userconfiguration.Remote.Useris optional, and declares a user on the remote machine where a file upload service is running. The value may be used as parameter for different transport protocols, depending on the--remote-methodin use.For instance, if using
--remote-method=rsync+ssh, theRemote.Userconfiguration will be used as user for SSH login.