Capistrano is a tool for remote server automation and deployment. We have to underline these two task as they will remain two different areas for a long time. Historicaly Capistrano was a deployment tool, but since then many server administration tools have been created for remote server administration. Software installation, package upgrade, data base management can be arranged using Capistrano.
Capistrano supports the idea of deployment strategies. Strictly speaking they are the way, how the source code goes to the remote machine. We can distinguish between local and remote strategies.
Local strategies have only one member, the copy strategy. Remote strategies split into export, checkout and remote_cache variants.
If you have a static site or do not want to use a SCM for deployment look at the following code snippet:
1 2 3 4 5 6 7 8
You have to ensure that both local and remote directories for archives exist.
If you need some additional readings on Capistrano, try out the following: