Adding "container commands" prevents Elasticbeanstalk environment from deploying

0

I have a django project deployed with "eb deploy" just fine with no errors, but when I add "container commands" to the folder ".ebextensions" the deploying fails.

Contents of the file .ebextensions > db-migrate.config:

container_commands:
  01_migrate:
    command: "source /var/app/venv/*/bin/activate && python manage.py makemigrations && python manage.py migrate"
    leader_only: true
option_settings:
  aws:elasticbeanstalk:application:environment:
    DJANGO_SETTINGS_MODULE: project_name.settings

What am I doing wrong ?

質問済み 2ヶ月前160ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ