Skip to content

Commit

Permalink
fixed deployment dir location
Browse files Browse the repository at this point in the history
  • Loading branch information
jkutner committed Jan 9, 2012
1 parent 5e32160 commit 97dc616
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/torquebox/remote_deploy_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,21 @@ def stage(archive_file)

def deploy(archive_file)
with_config(archive_file) do |config, app_name|
ssh_exec(config, "mkdir -p #{config.torquebox_home}/apps")
scp_upload(config, archive_file, "#{config.torquebox_home}/apps/")
scp_upload(config, archive_file, "#{config.torquebox_home}/jboss/standalone/deployments/")
ssh_exec(config, "touch #{config.torquebox_home}/jboss/standalone/deployments/#{app_name}.dodeploy")
end
end

def deploy_from_stage(archive_file)
with_config(archive_file) do |config, app_name|
ssh_exec(config, "mkdir -p #{config.torquebox_home}/apps")
ssh_exec(config, "cp #{config.torquebox_home}/stage/#{app_name}.knob #{config.torquebox_home}/apps")
ssh_exec(config, "cp #{config.torquebox_home}/stage/#{app_name}.knob #{config.torquebox_home}/jboss/standalone/deployments")
ssh_exec(config, "touch #{config.torquebox_home}/jboss/standalone/deployments/#{app_name}.dodeploy")
end
end

def undeploy(archive_file)
with_config(archive_file) do |config, *|
ssh_exec(config, "rm #{config.torquebox_home}/apps/#{archive_file}")
with_config(archive_file) do |config, app_name|
ssh_exec(config, "rm #{config.torquebox_home}/jboss/standalone/deployments/#{app_name}.*")
end
end

Expand Down

0 comments on commit 97dc616

Please sign in to comment.