权限设置重复说明 [英] Duplicate permission setting instructions
本文介绍了权限设置重复说明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用CodeDeploy的权限处理功能来部署Laravel应用,但我不断收到一条消息,指出/home/tether/storage/app具有重复权限.在我眼中,似乎except只能使它成为一条规则.
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
推荐答案
可以尝试添加
type:
- directory
到您的/home/tether对象?这样,codedeploy-agent会在设置权限时排除该目录下(例外列表中)列出的文件.
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.
这篇关于权限设置重复说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文