war 文件包部署 - Apache::Deploy 0.6.0 发布
fmms 13年前
该版本增加对 YUI compressor 的支持,同时增加一个功能用来构建自己的包等。 <br /> Apache::Deploy 是一个 Apache 模块,用来发布 java 的 war 文件包到 tomcat 应用服务器中。 一段发布应用到 Tomcat 的脚本: <pre class="brush:perl; toolbar: true; auto-links: false;">use Rex::Apache::Deploy Tomcat; # Version of the application my $VERSION = "1.0"; user "deploy"; public_key "/home/deploy/.ssh/id_rsa.pub"; private_key "/home/deploy/.ssh/id_rsa"; group "tomcat" => "tomcat[01..04]"; parallelism 4; context_path "/myapp"; desc "Deploy Application"; task "deploy", group => "tomcat", sub { deploy "myapp-$VERSION.war", { username => "manager-user", password => "manager-password", port => 8080, }; };</pre> <br />