我正在开发弹性 beanstalk 扩展。每次部署时都会出现存储权限被拒绝的错误,我必须输入命令来解决这个问题。下面的代码(.extensions/chmod.config)是否能防止该错误的发生?
container_commands:
01addpermission:
command: "chmod -R 755 /var/app/current/storage"
01clearcache:
command: "php /var/app/current config:cache"