Skip to content

Commit

Permalink
updates entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Oct 21, 2024
1 parent 3117452 commit a2d6ec7
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,53 @@ case "$1" in
--gid app \
$MAPPING
;;
worker)
exec celery -A country_workspace.celery worker -E --loglevel=ERROR --concurrency=4
;;
beat)
exec celery -A country_workspace.celery beat -E --loglevel=ERROR ---scheduler django_celery_beat.schedulers:DatabaseScheduler
;;
esac

exec "$@"


#
#case "$1" in
# run)
# if [ "$INIT_RUN_CHECK" = "1" ];then
# echo "Running Django checks..."
# django-admin check --deploy
# fi
# OPTS="--no-check -v 1"
# if [ "$INIT_RUN_UPGRADE" = "1" ];then
# if [ "$INIT_RUN_COLLECTSTATIC" != "1" ];then
# OPTS="$OPTS --no-static"
# fi
# if [ "$INIT_RUN_MIGRATATIONS" != "1" ];then
# OPTS="$OPTS --no-migrate"
# fi
# echo "Running 'upgrade $OPTS'"
# django-admin upgrade $OPTS
# fi
# set -- tini -- "$@"
# echo "Starting uwsgi..."
# exec uwsgi --ini /conf/uwsgi.ini
# ;;
# worker)
# exec celery -A country_workspace.celery worker -E --loglevel=ERROR --concurrency=4
# ;;
# beat)
# exec celery -A country_workspace.celery beat -E --loglevel=ERROR ---scheduler django_celery_beat.schedulers:DatabaseScheduler
# ;;
# dev)
# until pg_isready -h db -p 5432;
# do echo "waiting for database"; sleep 2; done;
# django-admin collectstatic --no-input
# django-admin migrate
# django-admin runserver 0.0.0.0:8000
# ;;
# *)
# exec "$@"
# ;;
#esac

0 comments on commit a2d6ec7

Please sign in to comment.