node[:deploy].each do |application, deploy|
  script "storage_permissions" do
    interpreter "bash"
    user "root"
    cwd "#{deploy[:deploy_to]}/current"
    code <<-EOH
    chdmod -R 777 storage
    EOH
  end
end
node[:deploy].each do |application, deploy|
  script "storage_permissions" do
    interpreter "bash"
    user "root"
    cwd "#{deploy[:deploy_to]}/current"
    code <<-EOH
    chmod -R 777 storage/app storage/framework storage/logs
    EOH
  end
end
Change the permissions of the Laravel storage directories
Change the permissions of the Laravel storage directories
