opensoul.org

Capistrano cowboy deploys

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

capistrano and tidbit December 04, 2010

1 Comment

  1. Josh Nichols Josh Nichols December 6, 2010

    It’s actually even easier: http://github.com/railsmachine/capistrano-cowboy/

Post a Comment

Comments use textile. Anonymous comments will be deleted.

My name is Brandon Keepers. I like to build things, usually in Ruby or JavaScript. I work at GitHub and live in Holland, MI.

Popular Posts