Permalink
Browse files

adding directory creation post_deploy task

  • Loading branch information...
1 parent 290e3ac commit be04646ba3487e36da539fa158e241995727837f @rick committed Jul 31, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/tasks/deploy.rake
View
@@ -8,6 +8,13 @@ namespace :deploy do
)
end
- task :post_deploy => [ :make_db_yml ]
+ task :make_dirs do
+ %w(tmp db log).each do |path|
+ dir = File.expand_path(File.join(File.dirname(__FILE__), "/../../#{path}"))
+ FileUtils.mkdir(dir) unless File.exists?(dir)
+ end
+ end
+
+ task :post_deploy => [ :make_db_yml, :make_dirs ]
end

0 comments on commit be04646

Please sign in to comment.