WE_Frontend::Publish::Rdist - publish files via rdist protocol
use WE_Frontend::Main2; use WEsiteinfo qw($c); $c->staging->transport("rdist"); $main->publish;
Please note that you need rsh authentification (.rhosts) setup to use rdist over remote hosts. If instead ssh transport is wished, then the transport config member should be set to rdist-ssh, and the ssh setup notes in WE_Frontend::Publish::Rsync apply.
.rhosts
ssh
transport
rdist-ssh
The staging object of WEsiteinfo.pm should be set as follows:
WEsiteinfo.pm
$staging->transport("rdist"); # $staging->transport("rdist-ssh"); # to use ssh instead of rsh $staging->user("remoteuser"); # or leave empty if on same host $staging->host("remotehost"); # or leave empty if on same host $staging->directory("subdirectory_on_remote for htdocs"); $staging->cgidirectory("subdirectory_on_remote for cgi-bin"); $project->stagingextracgi(["we_redisys.cgi", "..."]); # for cgi scripts $project->stagingexcept(["index.html", "..."]); # exclude in htdocs $project->stagingexceptpat(["*.pdf", "..."]); # exclude globs in htdocs $project->stagingadditional({"index-live.html" => "index.html"}); # additional files with renaming (these should/could be also excluded!) $staging->stagingext({deleteold => 0}); # set to true if old remote files should be deleted (dangerous!)
If the stagingext member contains the key-value pair distfile, then this is used as the Distfile for rdist.
stagingext
distfile
Distfile
rdist
Slaven Rezic - slaven@rezic.de
rdist(1).
To install WE::DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WE::DB
CPAN shell
perl -MCPAN -e shell install WE::DB
For more information on module installation, please visit the detailed CPAN module installation guide.