Adding 'container_commands' to Elasticbeanstalk project fails deployment

0

I have a django project that I want to deploy with ElasticBeanstalk, I defined a [xxxx.config] file in .ebextensions, the content of the file is:

xxxx.config



container_commands:
  acvenv:
    command: "source /var/app/venv/*/bin/activate"
  migrate:
    command: "python /var/app/current/manage.py migrate"

But the project doesn't deploy unless I remove xxxx.config.

I follow the documentation:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html

And

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html

已提問 2 個月前檢視次數 153 次
1 個回答
0

Hello MABAASHAR,

I understand that you tried to deploy your application source bundle to your Elastic Beanstalk environment but had a problem to deploy your app with the .ebextensions configuration file above.

To help you trouble your issue, It is necessary to check event records from your Elastic Beanstalk environment.

Can you share the event records from your Elastic Beanstalk environment?

Or you can join AWS Support Plans and get professional support from AWS Premium Support

I hope you have a great day.

Myungsup Kwak from AWS Premium Support

profile pictureAWS
支援工程師
已回答 2 個月前

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

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

回答問題指南