Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding directory creation post_deploy task

  • Loading branch information...
commit be04646ba3487e36da539fa158e241995727837f 1 parent 290e3ac
@rick authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/tasks/deploy.rake
View
9 lib/tasks/deploy.rake
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.