Skip to content

Instantly share code, notes, and snippets.

@deplorableword
Created October 6, 2011 08:36
Show Gist options
  • Save deplorableword/1266861 to your computer and use it in GitHub Desktop.
Save deplorableword/1266861 to your computer and use it in GitHub Desktop.
deploy via copy
require "bundler/capistrano"
set :application, "ivy"
default_run_options[:pty] = true
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
set :user, "username"
server "domain.com", :app, :web, :db, :primary => true
set :scm, :none
set :repository, "."
set :deploy_via, :copy
# If you are using Passenger mod_rails uncomment this:
namespace :deploy do
task :start do
run "automysqlbackup"
end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
end
@deplorableword
Copy link
Author

deplorableword commented Oct 6, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment