From 0fe19cdcd20266dcd10011dc8c2c13bb6356adc0 Mon Sep 17 00:00:00 2001 From: shaikkhajaibrahim Date: Tue, 27 Dec 2016 12:09:33 +0530 Subject: [PATCH] Added code for deploying application --- .../webserver/recipes/deploy_application.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Projects/shopizer/webserver/recipes/deploy_application.rb b/Projects/shopizer/webserver/recipes/deploy_application.rb index 9d99949..183c582 100644 --- a/Projects/shopizer/webserver/recipes/deploy_application.rb +++ b/Projects/shopizer/webserver/recipes/deploy_application.rb @@ -1,5 +1,17 @@ # -# Cookbook Name:: . +# Cookbook Name::webserver # Recipe:: deploy_application # # Copyright (c) 2016 The Authors, All Rights Reserved. + +#deploy_application +cookbook_file node['applicationserver']['warlocation'] do + source 'sm-shop.war' + owner 'root' + group 'root' + mode '0755' + action :create + notifies :restart, "service[#{tomcat_packageName}]" +end + +log 'copied war file and restarted tomcat' \ No newline at end of file