toolmantim

Cap deploy via SCP

November 20, 2007 19:18 (Sydney Australia)

Using a code revision system your deployment host doesn’t support? Use Capistrano’s copy deployment strategy:


set :deploy_via, :copy

# and if you don't feel like putting your source code
# in /tmp on a shared host
set :copy_remote_dir, "/home/#{user}/tmp" 

Capistrano will checkout your project locally, zip it up and scp it to the releases directory on the deployment host.

Now you can tell your host to git farked (though no promises they won’t nuke your all your data, BOFH style)

Comments

Michael Koukoullis

Get git or git farked. Have set it up on my new slice, planning to use gitosis to host repositories.

Aníbal Rojas

Actually, it is usefull if you are deploying to a server under the administration of a paranoid sysadmin blocking every port and protocol differente from SSH and HTTP ;-)

Kurt Werle

Very useful. I do with that the cap documentation was a little fuller, and I didn’t have to google for “capistrano scp” to find out how to do this.

Thanks!

To comment on this article you must have javascript enabled.