Elastic Beanstalk with git submodules - deployed code has no execute permissions

0

Hello, I Use Elastic Beanstalk to deploy a Python django server over AWS Linux 2 machine. My git project includes another git repository integrated as git submodule.

I followed these instructions. Specifically I configured:

  • .elasticbeanstalk/config.yml - include_git_submodules: true, branch: main (both under the global section)
  • .submodules file - auto-update=yes, branch=main under the relevant submodule.

Once I eb deploy the whole git repo including the submodule files are deployed successfully to the machine and are visible under /var/app/current. Testing the application throws exception indicating that a certain python module (py file) isn't available. I eb ssh to the machine and discovered that the whole submodule py files has not execute permissions (-rw------- ).

Other py files, not under the submodule has appropriate executable permissions (-rwxr-xr-x)

My Question: How to properly set/configure the submodule within the repo and/or the eb for proper deployment?

hoshmy
已提問 2 年前檢視次數 74 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南