Skip to content

Commit

Permalink
getting cap deploy to work
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalronin committed Mar 8, 2009
1 parent f7bc490 commit 11ff0c4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,23 @@
set :scm, :git
set :git_enable_submodules, 1

depend :remote, "#{deploy_to}/shared/system/keys.rb"
set :ssh_options, { :forward_agent => true, :compression => false }
set :user, 'appuser'

role :app, "rewiredstate"
role :web, "rewiredstate"
role :db, "rewiredstate", :primary => true

namespace :deploy do
desc "Restart Application"
task :restart, :roles => :app do
run "touch #{current_path}/tmp/restart.txt"
end

desc "Copy required files from shared dirs"
task :copy_shared, :roles => :app do
run "cp #{shared_path}/system/keys.rb #{current_path}/lib/"
end
end

before 'deploy:symlink', 'deploy:copy_shared'

0 comments on commit 11ff0c4

Please sign in to comment.