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)
Archived comments
Comments were previously allowed on articles. Though no new comments are being accepted you can see the old comments below.
-
Get git or git farked. Have set it up on my new slice, planning to use gitosis to host repositories.
-
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 ;-)
-
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!
-
Technically, its using sftp, not the same thing as scp.
You have to configure an ftp server and all that BS, why not just use scp out of the box?