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회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠