informatics-lab / weather-bot

Met Office prototype chat bot to talk about all things weather & climate related
1 stars 1 forks source link

Disable sentry when developing locally #38

Closed jacobtomlinson closed 7 years ago

jacobtomlinson commented 7 years ago

Local development should not trigger alerts in sentry. Perhaps a check for an env var of ENVIRONMENT=production or similar and the setting of that var in the docker compose file would be best.

jacobtomlinson commented 7 years ago

Maybe here.

if (process.env.ENVIRONMENT == "production") {
    raven.context(function() {
        main();
    });
} else {
     main();
}
tam203 commented 7 years ago

Done. Waiting to deploy next week.