Created
February 12, 2010 14:49
-
-
Save csamuel/302620 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# collect up our war into the deploy_from folder | |
# notice that all we're doing is a copy here, | |
# so it is pretty easy to swap this out for | |
# a wget command, which makes sense if you're | |
# using a continuous integration server like | |
# bamboo. (more on this later). | |
before 'deploy:update_code' do | |
unless(war.nil?) | |
puts "get war" | |
system("cp #{war} #{deploy_from}") | |
puts system("ls -l #{deploy_from}") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment