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 ?

posta 2 mesi fa160 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande