Remove sentry from supercronic docker_start.sh

This commit is contained in:
Daniel Egger 2023-09-07 19:01:17 +02:00
parent 548f2f2201
commit 56fa5372b7
1 changed files with 4 additions and 3 deletions

View File

@ -16,9 +16,10 @@ else
fi
# Use sentry for supercronic only in prod* environments
if [[ $IT_APP_ENVIRONMENT == prod* ]]; then
sed -i "s|command=/usr/local/bin/supercronic /app/supercronic_crontab|command=/usr/local/bin/supercronic /app/supercronic_crontab -sentry-dsn '$IT_SENTRY_DSN'|" /app/supervisord.conf
fi
# FIXME: does not seem to work
#if [[ $IT_APP_ENVIRONMENT == prod* ]]; then
# sed -i "s|command=/usr/local/bin/supercronic /app/supercronic_crontab|command=/usr/local/bin/supercronic /app/supercronic_crontab -sentry-dsn '$IT_SENTRY_DSN'|" /app/supervisord.conf
#fi
# Set the command to run supervisord
/home/django/.local/bin/supervisord -c /app/supervisord.conf