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
feita há 2 anos74 visualizações
Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas