Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ! typo #22

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
<<: *common
ports:
- 8000:8000
command: ["entrypoint.sh", "dev"]
command: ["docker-entrypoint.sh", "dev"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/healthcheck"]
interval: 10s
Expand All @@ -29,11 +29,11 @@ services:

celery_worker:
<<: *common
command: ["entrypoint.sh", "celery_worker"]
command: ["docker-entrypoint.sh", "worker"]

celery_beat:
<<: *common
command: ["entrypoint.sh", "celery_beat"]
command: ["docker-entrypoint.sh", "beat"]

db:
image: postgres:15
Expand Down
5 changes: 3 additions & 2 deletions docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ case "$1" in
exec uwsgi --ini /conf/uwsgi.ini
;;
worker)
exec celery -A hope_dedup_engine.celery worker -E --loglevel=ERROR --concurrency=4
export C_FORCE_ROOT=1
exec celery -A hope_dedup_engine.config.celery worker -E --loglevel=ERROR --concurrency=4
;;
beat)
exec celery -A hope_dedup_engine.celery beat -E --loglevel=ERROR ---scheduler django_celery_beat.schedulers:DatabaseScheduler
exec celery -A hope_dedup_engine.config.celery beat --loglevel=ERROR --scheduler django_celery_beat.schedulers:DatabaseScheduler
;;
dev)
until pg_isready -h db -p 5432;
Expand Down
38 changes: 0 additions & 38 deletions docker/entrypoint.sh

This file was deleted.

Loading