Skip to content

Instantly share code, notes, and snippets.

@ndarville
Last active December 13, 2015 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndarville/4971691 to your computer and use it in GitHub Desktop.
Save ndarville/4971691 to your computer and use it in GitHub Desktop.
container_commands:
01syncdb:
command: "django-admin.py syncdb --noinput"
leader_only: true
02schemamigrate:
command: "django-admin.py schemamigration forum --initial"
leader_only: true
03migrate:
command: "django-admin.py migrate forum --fake
leader_only: true
04mkadmin:
command: "python _postinstall/mkadmin.py"
leader_only: true
05definesite:
command: "python _postinstall/definesite.py"
leader_only: true
06mkplaceholders:
command: "python _postinstall/mkplaceholders.py"
leader_only: true
pipupdate:
command: "pip install -U -r requirements.txt"
collectstatic:
command: "django-admin.py collectstatic --noinput"
migrate:
command: "django-admin.py migrate forum"
option_settings:
- option_name: DJANGO_SETTINGS_MODULE
value: ponyforum.settings
- option_name: AWS_ENVIRONMENT
value: True
"aws:elasticbeanstalk:container:python":
WSGIPath: wsgi.py
NumProcesses: 3
NumThreads: 20
"aws:elasticbeanstalk:container:python:staticfiles":
"/static/": "static/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment