Skip to content

Commit

Permalink
Create yii_folder_permissions.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
dwamianm committed Aug 21, 2014
1 parent fd80fcd commit b46da68
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/recipes/yii_folder_permissions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node[:deploy].each do |application, deploy|
assets_folder = "#{deploy[:deploy_to]}/current/public_html/assets"
runtime_folder = "#{deploy[:deploy_to]}/current/protected/runtime"
execute "chmod -Rf 777 #{assets_folder} #{runtime_folder}" do
command "chmod -Rf 777 #{assets_folder} #{runtime_folder}"
end
end

0 comments on commit b46da68

Please sign in to comment.