set :stages, %w(dev production) set :default_stage, "dev" require 'capistrano/ext/multistage' set :application, "pottsauction.com" set :scm, :git set :repository, "git@github.com:jgilstrap/pottsauction.git" set :branch, "master" set :deploy_via, :remote_cache set :user, 'deploy' set :ssh_options, { :port => 6500, :forward_agent => true } namespace :deploy do desc "Restarting mod_rails with restart.txt" task :restart, :roles => :app, :except => { :no_release => true } do run "touch #{current_path}/tmp/restart.txt" end [:start, :stop].each do |t| desc "#{t} task is a no-op with mod_rails" task t, :roles => :app do ; end end end