Skip to content

Instantly share code, notes, and snippets.

@jnewland
Created August 21, 2010 17:44
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jnewland/542617 to your computer and use it in GitHub Desktop.
Save jnewland/542617 to your computer and use it in GitHub Desktop.
toss this in your ~/.caprc, then `cap cowboy staging deploy`. Use carefully.
namespace :cowboy do
desc 'Deploy without SCM'
task :default do
deploy_stage = fetch(:stage, 'none')
set :repository, "."
set :deploy_via, :copy
set :scm, :none
set :stage, deploy_stage
set :cowboy_deploy, true
set :copy_exclude, [".git/*", ".svn/*", "log/*", "vendor/bundle/*"]
end
end
@jnewland
Copy link
Author

jnewland commented Dec 6, 2010

techpickles gemified this up here:

https://github.com/railsmachine/capistrano-cowboy

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