Mina provides the deploy command which queues up a deploy script for you. # config/deploy.rb set :domain, 'flipstack.com' set :user, 'flipstack' set :deploy_to, '/var/www/flipstack.com' set :repository, 'http://github.com/flipstack/flipstack.git' task :deploy do deploy do # Put things that prepare the empty release folder here. # Commands queued here will be ran on a new release directory. invoke