Skip to content

Commit

Permalink
fixed some dodeploy bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkutner committed Mar 23, 2012
1 parent 3af086b commit 57b711f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/torquebox/remote_deploy_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57b711f

Please sign in to comment.