Capistrano is a good tool for deploying applications. It can deploy Ruby on Rails applications and other applications. This article is to show you how to use Capistrano to deploy a static website. The deployment process is very simple, just check out the code from Git and put into a directory hosted by Apache.
Prepare your local environment
On your local development environment, install Capistrano using
gem install capistrano.
Prepare your remote environment
Remote environment is where the application is deployed to. Add user
deploy to your remote environment. This user
deploy is the user Capistrano runs.