set :stages, %w(dev prod) set :default_stage, "dev" require 'capistrano/ext/multistage' set :application, "pottsauction.com" set :scm, :mercurial set :repository, "ssh://hg@bitbucket.org/electroweb/pottsauction/" 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