Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- container_commands:
- 01_migrate:
- command: "source /opt/python/run/venv/bin/activate && python iotd/manage.py migrate --noinput"
- leader_only: true
- 02_collectstatic:
- command: "source /opt/python/run/venv/bin/activate && python iotd/manage.py collectstatic --noinput"
- option_settings:
- "aws:elasticbeanstalk:application:environment":
- DJANGO_SETTINGS_MODULE: "iotd.settings"
- "PYTHONPATH": "/opt/python/current/app/iotd:$PYTHONPATH"
- "ALLOWED_HOSTS": ".elasticbeanstalk.com"
- "aws:elasticbeanstalk:container:python":
- WSGIPath: iotd/iotd/wsgi.py
- NumProcesses: 3
- NumThreads: 20
- "aws:elasticbeanstalk:container:python:staticfiles":
- "/static/": "www/static/"
- STATIC_ROOT = os.path.join(BASE_DIR, "..", "www", "static")
- STATIC_URL = '/static/'
- STATIC_URL = '/static/'
- STATICFILES_DIRS = ('assets',)
- STATIC_ROOT = os.path.join(BASE_DIR, '..', 'www', 'static')
- project/
- ├── __init__.py
- ├── settings
- │ ├── base.py
- │ ├── __init__.py
- │ ├── local.py
- │ ├── production.py
Add Comment
Please, Sign In to add comment