opensoul.org

Capistrano cowboy deploys

December 5, 2010 code 1 min read

Sometimes, you just need to shoot from the hip…or deploy your local changes without committing them. Put this snippet from Jesse Newland in ~/.caprc and now you can cap cowboy deploy:

namespace :cowboy do
  desc 'Deploy without SCM'
  task :default do
    set :repository,  "."
    set :deploy_via, :copy
    set :scm, :none
    set :stage, fetch(:stage, 'none')
    set :cowboy_deploy, true
    set :copy_exclude, [".git/*", ".svn/*", "log/*", "vendor/bundle/*"]
  end
end
This content is open source. Suggest Improvements.

@bkeepers

avatar of Brandon Keepers I am Brandon Keepers, and I work at GitHub on making Open Source more approachable, effective, and ubiquitous. I tend to think like an engineer, work like an artist, dream like an astronaut, love like a human, and sleep like a baby.