mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 18:14:01 +03:00
52e84608be
When deploying with a stale content type the migration command can ask for user input which fails the deployment.
18 lines
765 B
Plaintext
18 lines
765 B
Plaintext
container_commands:
|
|
01_migrate:
|
|
command: "source /opt/python/run/venv/bin/activate && python manage.py migrate --noinput"
|
|
leader_only: True
|
|
02_collectstatic:
|
|
command: "source /opt/python/run/venv/bin/activate && python manage.py collectstatic --noinput"
|
|
option_settings:
|
|
"aws:elasticbeanstalk:application:environment":
|
|
DJANGO_SETTINGS_MODULE: "config.settings.production"
|
|
REDIS_ENDPOINT_ADDRESS: '`{ "Fn::GetAtt" : [ "MyElastiCache", "RedisEndpoint.Address"]}`'
|
|
REDIS_PORT: '`{ "Fn::GetAtt" : [ "MyElastiCache", "RedisEndpoint.Port"]}`'
|
|
"aws:elasticbeanstalk:container:python":
|
|
WSGIPath: "config/wsgi.py"
|
|
NumProcesses: 3
|
|
NumThreads: 20
|
|
"aws:elasticbeanstalk:container:python:staticfiles":
|
|
"/static/": "www/static/"
|