diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-09-11 16:33:23 +1000 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-09-11 16:33:23 +1000 |
commit | b7601014b1b173703004c3050e0e834bbbda1c73 (patch) | |
tree | a77514d9f7d2657e41188c35e2db2aeb24064206 | |
parent | 56f61777342dbda24a120e2c5d45d93a4c5c8eae (diff) |
Make this a task too. I think it's clearer and more consistent
-rw-r--r-- | config/deploy.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index 05009223a..d3db1c787 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -39,8 +39,8 @@ namespace :deploy do task t, :roles => :app do ; end end - desc "Link additional configuration after code update" - after "deploy:update_code" do + desc 'Link configuration after a code update' + task :symlink_configuration do links = { "#{release_path}/config/database.yml" => "#{shared_path}/database.yml", "#{release_path}/config/general.yml" => "#{shared_path}/general.yml" @@ -51,4 +51,5 @@ namespace :deploy do end end +after 'deploy:update_code', 'deploy:symlink_configuration' after 'deploy:update_code', 'rake:themes:install' |