Skip to content

Instantly share code, notes, and snippets.

@grahamb
Created February 1, 2013 00:10
Show Gist options
  • Select an option

  • Save grahamb/4687942 to your computer and use it in GitHub Desktop.

Select an option

Save grahamb/4687942 to your computer and use it in GitHub Desktop.
role :app, "canvas.dev"
role :db, "canvas.dev", :primary => true
set :scm, :none
set :repository, "."
set :deploy_via, :copy
set :rails_env, "production"
ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "id_rsa")]
namespace :canvas do
# override the copy_config step
desc "Copy config files from /mnt/data/canvasconfig/config"
task :copy_config do
run "cp #{shared_path}/config/*.yml #{latest_release}/config"
end
# override the log_deploy step
task :log_deploy do ; end
end
# override the disable/enable web steps
namespace :deploy do
namespace :web do
task :disable do ; end
task :enable do ; end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment