重复的权限设置说明CodeDeploy



我正试图使用CodeDeploy将应用程序部署到EC2上,但我面临以下错误

/var/www/html/storage/framework 的重复权限设置说明

我的appspec.yml低于

version: 0.0
os: linux
files:
 - source: /
   destination: /var/www/html
permissions:
  - object: /var/www/html
    owner: apache
    group: apache
    mode: 644
    except:
      - storage/*
    type:
      - directory
  - object: /var/www/html/storage
    owner: apache
    group: apache
    mode: 777
    type:
      - directory

我已经尝试了except的各种格式,包括

  • 显式列出相对路径

    except:
     - storage
     - storage/app
     - storage/logs
     - storage/framework
     - storage/framework/views
     - storage/framework/cache
     - storage/framework/sessions
    
  • 使用通配符

    except:
     - storage/*
    
  • 仅使用文件夹名称

    except:
     - storage
    

这些似乎都不能解决问题。

类似问题

  • AWS CodeDeploy重复权限
  • 重复权限设置说明

except选项需要指定为数组。(使用[]而非嵌套列表)

您可以在appspec参考指南中的权限示例中看到它(向下滚动一点):http://docs.aws.amazon.com/codedeploy/latest/userguide/app-spec-ref.html#app-spec-ref权限

最新更新