How do you add chmod +x permission to an AWS Elastic Beanstalk platform hook?

前端 未结 2 528
孤独总比滥情好
孤独总比滥情好 2021-01-13 11:45

Context

I am using Elastic Beanstalk to deploy a very simple test application. I have several packages I want to install using apt. I have included a

相关标签:
2条回答
  • 2021-01-13 12:22

    Make sure to make your file executable in git

    chmod +x path/to/file
    git update-index --chmod=+x path/to/file
    

    reference from How to add chmod permissions to file in GIT?

    0 讨论(0)
  • 2021-01-13 12:25

    Normally you set the permissions on your local workstation, when before you zip your deployment package.

    However, if you want to do this on EB instance, then you can't use container_commands for that. The reason is that container_commands execute after prebuild. Instead you should try using commands:

    The prebuild files run after running commands found in the commands section of any configuration file and before running Buildfile commands.

    0 讨论(0)
提交回复
热议问题