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