Deploy a Production Django App With Elastic Beanstalk (Part 1 ...
betterprogramming.pub › production-django-elasticDec 11, 2020 · option_settings: aws:elasticbeanstalk:application:environment: DJANGO_SETTINGS_MODULE: "iotd.settings" PYTHONPATH: "/var/app/current:$PYTHONPATH" aws:elasticbeanstalk:container:python: WSGIPath: "iotd.wsgi:application" aws:elasticbeanstalk:environment:process:default: HealthCheckPath: "/api" MatcherHTTPCode: "200-499" container_commands: 01_makemigrations: command: "source /var/app/venv/*/bin/activate && python3 manage.py makemigrations --noinput" leader_only: true 02_migrate: command ...