Skip to content

Commit

Permalink
chg ! docker exit in case non-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
vitali-yanushchyk-valor committed Sep 13, 2024
1 parent 3829be7 commit 7e4abcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case "$1" in
exit 0
;;
worker)
gosu user:app django-admin syncdnn
gosu user:app django-admin syncdnn || exit 1
set -- tini -- "$@"
set -- gosu user:app celery -A hope_dedup_engine.config.celery worker -E --loglevel=ERROR --concurrency=4
;;
Expand All @@ -36,8 +36,8 @@ case "$1" in
set -- gosu user:app celery -A hope_dedup_engine.config.celery beat --loglevel=ERROR --scheduler django_celery_beat.schedulers:DatabaseScheduler
;;
run)
django-admin check --deploy
django-admin upgrade
django-admin check --deploy || exit 1
django-admin upgrade || exit 1
set -- tini -- "$@"
set -- gosu user:app uwsgi --ini /conf/uwsgi.ini
;;
Expand Down

0 comments on commit 7e4abcb

Please sign in to comment.