From 57b711ff3fef69adf5fb7ddc99c9e355e4d772e5 Mon Sep 17 00:00:00 2001 From: Joe Kutner Date: Fri, 23 Mar 2012 13:44:51 -0500 Subject: [PATCH] fixed some dodeploy bugs --- lib/torquebox/remote_deploy_utils.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/torquebox/remote_deploy_utils.rb b/lib/torquebox/remote_deploy_utils.rb index 1b1d627..52e6695 100644 --- a/lib/torquebox/remote_deploy_utils.rb +++ b/lib/torquebox/remote_deploy_utils.rb @@ -75,10 +75,11 @@ def do_deploy(config, app_name) environment: RAILS_ENV: production YAML - knob_yml_file = Tempfile.new("#{app_name}-knob.yml") - knob_yml_file.write(knob_yml) unless config.local + knob_yml_file = Tempfile.new("#{app_name}-knob.yml") + knob_yml_file.write(knob_yml) + puts "tempfile : #{knob_yml_file.path}" scp_upload(config, knob_yml_file.path, "#{config.jboss_home}/standalone/deployments/") ssh_exec(config, "touch #{config.jboss_home}/standalone/deployments/#{app_name}-knob.yml.dodeploy") else