Skip to content

Commit

Permalink
Use new-style after().
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed Sep 21, 2011
1 parent 19abf66 commit 64d97e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/deploy-orig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
set :runner, "capistrano" # might want to change this
set :use_sudo, false

# get GemInstaller working
after 'deploy:update_code', 'deploy:remove_unnecessary_files'

namespace :deploy do

Expand All @@ -46,7 +46,8 @@
run "/usr/bin/touch #{current_path}/tmp/restart.txt"
end

task :after_update_code do
desc 'Remove shared files and image sources.'
task :remove_unnecessary_files, :roles => :app do
# Remove some unversioned YAML config files and link to shared directory.
rpath = File.expand_path(release_path)
['database.yml', 'config.yml', 'gmaps_api_key.yml'].each do |file|
Expand Down

0 comments on commit 64d97e4

Please sign in to comment.