Bugfix: start supercronic with sentry on production

This commit is contained in:
Daniel Egger 2023-09-07 09:27:09 +02:00
parent 2db7a5186f
commit 1f115d966a
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ 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
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