Duplicate permission setting instructions

匿名 (未验证) 提交于 2019-12-03 01:26:01

问题:

I'm trying to use CodeDeploy's permission handling stuff to deploy a Laravel app but I'm constantly getting a message saying /home/tether/storage/app has duplicate permissions. To my eyes, it looks like the except should make it only one rule.

yaml permissions:   - object: /home/tether     pattern: "**"     except: [       storage,       storage/app,       storage/framework,       storage/framework/cache,       storage/framework/sessions,       storage/framework/views,       storage/framework,       storage/logs     ]     owner: tether     group: tether   - object: /home/tether/storage     pattern: "**"     owner: tether     group: tether     mode: 755     type:       - directory 

回答1:

Can you try adding

type:   - directory 

to your /home/tether object? That way the codedeploy-agent would exclude the files listed under that directory (in the exception list) while setting permissions.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!