Skip to content

Instantly share code, notes, and snippets.

@geeky-sh
Last active July 2, 2019 02:12
Show Gist options
  • Save geeky-sh/484a778c29be487824151ae8f825c885 to your computer and use it in GitHub Desktop.
Save geeky-sh/484a778c29be487824151ae8f825c885 to your computer and use it in GitHub Desktop.
EBExtensions db config
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: main/wsgi.py
aws:elasticbeanstalk:application:environment:
STAGING: 1
DJANGO_SETTINGS_MODULE: main.settings
container_commands:
01_migrate:
command: "source /opt/python/current/env && source /opt/python/run/venv/bin/activate && cd /opt/python/current/app && ./manage.py migrate"
leader_only: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment