更新时间:2023-11-24 22:28:46
通常,在压缩部署程序包之前,您先在本地工作站上设置权限。
Normally you set the permissions on your local workstation, when before you zip your deployment package.
但是,如果要在EB上执行此操作实例,则不能使用 container_commands
。原因是 container_commands
在之后 prebuild
后执行。相反,您应该尝试使用命令
:
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
:
预构建文件在运行命令后运行 在任何配置文件的命令部分中找到 strong>,然后再运行Buildfile命令。
The prebuild files run after running commands found in the commands section of any configuration file and before running Buildfile commands.