弹性beanstalk对文件夹的777权限

时间:2015-03-10 02:48:54

标签: amazon-web-services permissions elastic-beanstalk

无法获得777权限来处理弹性beanstalk上的部署我在.config文件的.ebextensions文件夹中有这个,但我总是得到一个错误deployig:

container_commands:
  01storage_permissions:
    command: "chmod -fR 777 /var/app/current/uploads/"
  02storage_permissions:
    command: "chmod -fR 777 /var/app/current/app/storage/"

我也试过

container_commands:
  01storage_permissions:
    command: "chmod -fR 777 /var/app/ondeck/uploads/"
  02storage_permissions:
    command: "chmod -fR 777 /var/app/ondeck/app/storage/"

错误:

[Instance: i-ee305727 Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: [CMD-AppDeploy/AppDeployStage0/EbExtensionPostBuild] command failed with error code 1: Error occurred during build: Command 01storage_permissions failed.

任何想法?谢谢!

1 个答案:

答案 0 :(得分:0)

如果路径存在,您也可以尝试:

 01storage_permissions:
    command: "chmod -fR 777 /var/app/current/uploads/"
    owner: root
    group: root