Skip to content
Merged
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
9 changes: 8 additions & 1 deletion docker/scripts/app-init-celery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ fi

USER_BIN_PATH="/home/dev/.local/bin"
WATCHMEDO="$USER_BIN_PATH/watchmedo"
CELERY="$USER_BIN_PATH/celery"
# Find a celery that works
if [[ -x "$USER_BIN_PATH/celery" ]]; then
# This branch is used for dev
CELERY="$USER_BIN_PATH/celery"
else
# This branch is used for sandbox instances
CELERY="/usr/local/bin/celery"
fi
trap 'trap "" TERM; cleanup' TERM
# start celery in the background so we can trap the TERM signal
if [[ -n "${DEV_MODE}" && -x "${WATCHMEDO}" ]]; then
Expand Down
Loading