lib/capistrano/recipes/application.rb in marcosgz-cap-recipe-0.0.10 vs lib/capistrano/recipes/application.rb in marcosgz-cap-recipe-0.0.11
- old
+ new
@@ -13,10 +13,10 @@
namespace :create do
task :dirs, :roles => :app do
deploy.setup
- commands = %w(config uploads backup bundle pids tmp/cache public/cache).map do |path|
+ commands = %w(config sockets uploads backup bundle pids tmp/cache public/cache).map do |path|
"if [ ! -d '#{path}' ]; then mkdir -p #{path}; fi;"
end
run "cd #{shared_path}; #{commands.join(' ')}"
run "chmod 777 #{shared_path}/public/cache #{shared_path}/tmp/cache"
end