Skip to content

Instantly share code, notes, and snippets.

@deplorableword
Created October 6, 2011 08:36
Show Gist options
  • Select an option

  • Save deplorableword/1266861 to your computer and use it in GitHub Desktop.

Select an option

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

trovster commented Oct 6, 2011

Copy link
Copy Markdown

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

deplorableword commented Oct 6, 2011 via email

Copy link
Copy Markdown
Author

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