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";
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.