Bugfix: start supercronic with sentry on production
This commit is contained in:
parent
2db7a5186f
commit
1f115d966a
|
|
@ -17,7 +17,7 @@ fi
|
||||||
|
|
||||||
# Use sentry for supercronic only in prod* environments
|
# Use sentry for supercronic only in prod* environments
|
||||||
if [[ $IT_APP_ENVIRONMENT == prod* ]]; then
|
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
|
fi
|
||||||
|
|
||||||
# Set the command to run supervisord
|
# Set the command to run supervisord
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue