Apache::D Eploy 0.5.1 publish Tomcat's Apache module

Source: Internet
Author: User
Keywords Apache deploy tomcat apache Module
Tags aliyun apache apache module apache::d eploy file html http package

Apache::D Eploy is a http://www.aliyun.com/zixun/aggregation/14417.html >apache module that is used to publish a war package to Tomcat. This version fixes the template resolution of the property file and handles the problem with the line terminator for Windows.

Apache::D eploy 0.5.1 This release fixes the parsing of template file properties. Need to be described at the end of the property file's Windows line.

Use examples:

In your rexfile use the following commands.

To inject special revisit parameters for different environments

Use Rex::apache::inject YAML; Template_file "inject.conf"; Template_search_for "Application.yml"; Desc "inject revisit"; Task "Inject", sub {inject "myapp-1.0.tar.gz", Pre_pack_hook => sub {run "Bundle_path=vendor/bundle BUNDLE";}, Post_pack_hool => Sub {dour "568.html" >hello, I ' M the post pack hook\n; };

Deploy the Package

Deploy_to "/path/to/deploy/to"; Document_root "/var/www/html"; Generate_deploy_directory Sub {return $VERSION;}; Desc "Deploy Package"; Task "Deploy", group => "Fe", sub {deploy "myapp-1.0.tar.gz";
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.