Skip to content

Instantly share code, notes, and snippets.

@deplorableword
Created October 6, 2011 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
@trovster
Copy link

trovster commented Oct 6, 2011

I'm trying the following, but nothing seems to happen!

set :application, "wordpress"
set :domain, "project.staging.co.uk"
set :user, "username"
set :deploy_to, "/home/#{user}/public_html/project"
set :use_sudo, false
server "#{domain}", :app, :web, :db, :primary => true

set :scm, :none
set :repository,  "."
set :deploy_via, :copy

namespace :deploy do
  desc ""
  task :default do
    #run "cd public && git pull"
    #run "automysqlbackup"
  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