Guest User

Untitled

a guest
Mar 18th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. container_commands:
  2. 01_migrate:
  3. command: "source /opt/python/run/venv/bin/activate && python iotd/manage.py migrate --noinput"
  4. leader_only: true
  5. 02_collectstatic:
  6. command: "source /opt/python/run/venv/bin/activate && python iotd/manage.py collectstatic --noinput"
  7.  
  8. option_settings:
  9. "aws:elasticbeanstalk:application:environment":
  10. DJANGO_SETTINGS_MODULE: "iotd.settings"
  11. "PYTHONPATH": "/opt/python/current/app/iotd:$PYTHONPATH"
  12. "ALLOWED_HOSTS": ".elasticbeanstalk.com"
  13. "aws:elasticbeanstalk:container:python":
  14. WSGIPath: iotd/iotd/wsgi.py
  15. NumProcesses: 3
  16. NumThreads: 20
  17. "aws:elasticbeanstalk:container:python:staticfiles":
  18. "/static/": "www/static/"
  19.  
  20. STATIC_ROOT = os.path.join(BASE_DIR, "..", "www", "static")
  21. STATIC_URL = '/static/'
  22.  
  23. STATIC_URL = '/static/'
  24. STATICFILES_DIRS = ('assets',)
  25. STATIC_ROOT = os.path.join(BASE_DIR, '..', 'www', 'static')
  26.  
  27. project/
  28. ├── __init__.py
  29. ├── settings
  30. │   ├── base.py
  31. │   ├── __init__.py
  32. │   ├── local.py
  33. │   ├── production.py
Add Comment
Please, Sign In to add comment