Skip to content

Commit

Permalink
Always run API in DEBUG mode to be able to serve staticfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Feb 25, 2021
1 parent 20950ae commit 2a22919
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ services:
restart: "no"
environment:
- ENVIRONMENT=development
- DEBUG=${DEBUG-True}
celery:
build: .
volumes:
Expand Down
8 changes: 7 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
- ES_HOST=${ES_HOST-es}
- ES_PORT=${ES_PORT-9200}
- ENVIRONMENT=${ENVIRONMENT-production}
- DEBUG=${DEBUG-False}
- DEBUG=True #needed to be able to serve staticfiles with Django server
- SECRET_KEY
- SENTRY_DSN_KEY
- API_SUPERUSER_PASSWORD=${API_SUPERUSER_PASSWORD-Root123}
Expand All @@ -56,6 +56,7 @@ services:
environment:
- REDIS_HOST=${REDIS_HOST-redis}
- REDIS_PORT=${REDIS_PORT-6379}
- DEBUG=${DEBUG-False}
celery_indexing:
image: openconceptlab/oclapi2:${ENVIRONMENT-production}
command: ["bash", "-c", "CELERY_WORKER_NAME=indexing ./start_celery_worker.sh -P prefork -Q indexing -c 10"]
Expand All @@ -65,6 +66,7 @@ services:
environment:
- REDIS_HOST=${REDIS_HOST-redis}
- REDIS_PORT=${REDIS_PORT-6379}
- DEBUG=${DEBUG-False}
celery_concurrent:
image: openconceptlab/oclapi2:${ENVIRONMENT-production}
command: ["bash", "-c", "CELERY_WORKER_NAME=concurrent ./start_celery_worker.sh -P prefork -Q concurrent -c 10"]
Expand All @@ -74,6 +76,7 @@ services:
environment:
- REDIS_HOST=${REDIS_HOST-redis}
- REDIS_PORT=${REDIS_PORT-6379}
- DEBUG=${DEBUG-False}
celery_bulk_import_0_1:
image: openconceptlab/oclapi2:${ENVIRONMENT-production}
command: ["bash", "-c", "CELERY_WORKER_NAME=bulk_import_0_1 ./start_celery_worker.sh -Q bulk_import_0,bulk_import_1 -c 1"]
Expand All @@ -83,6 +86,7 @@ services:
environment:
- REDIS_HOST=${REDIS_HOST-redis}
- REDIS_PORT=${REDIS_PORT-6379}
- DEBUG=${DEBUG-False}
celery_bulk_import_2_3:
image: openconceptlab/oclapi2:${ENVIRONMENT-production}
command: ["bash", "-c", "CELERY_WORKER_NAME=bulk_import_2_3 ./start_celery_worker.sh -Q bulk_import_2,bulk_import_3 -c 1"]
Expand All @@ -92,6 +96,7 @@ services:
environment:
- REDIS_HOST=${REDIS_HOST-redis}
- REDIS_PORT=${REDIS_PORT-6379}
- DEBUG=${DEBUG-False}
celery_bulk_import_root:
image: openconceptlab/oclapi2:${ENVIRONMENT-production}
command: ["bash", "-c", "CELERY_WORKER_NAME=bulk_import_root ./start_celery_worker.sh -Q bulk_import_root -c 1"]
Expand All @@ -101,6 +106,7 @@ services:
environment:
- REDIS_HOST=${REDIS_HOST-redis}
- REDIS_PORT=${REDIS_PORT-6379}
- DEBUG=${DEBUG-False}
flower:
image: openconceptlab/oclapi2:${ENVIRONMENT-production}
command: ["bash", "-c", "./start_flower.sh"]
Expand Down

0 comments on commit 2a22919

Please sign in to comment.