diff --git a/app/config.py b/app/config.py index 0d48aa7c73..d4325770ef 100644 --- a/app/config.py +++ b/app/config.py @@ -710,10 +710,15 @@ class Scratch(Production): NOTIFY_ENVIRONMENT = "scratch" +class Dev(Production): + NOTIFY_ENVIRONMENT = "dev" + + configs = { "development": Development, "test": Test, "production": Production, "staging": Staging, "scratch": Scratch, + "dev": Dev, } diff --git a/gunicorn_config.py b/gunicorn_config.py index 969e89ff16..665655e00a 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -12,7 +12,7 @@ bind = "0.0.0.0:{}".format(os.getenv("PORT")) accesslog = "-" -on_aws = os.environ.get("NOTIFY_ENVIRONMENT", "") in ["production", "staging", "scratch"] +on_aws = os.environ.get("NOTIFY_ENVIRONMENT", "") in ["production", "staging", "scratch", "dev"] if on_aws: # To avoid load balancers reporting errors on shutdown instances, see AWS doc # > We also recommend that you configure the idle timeout of your application diff --git a/newrelic.ini b/newrelic.ini index 531709557e..eddd873bfd 100644 --- a/newrelic.ini +++ b/newrelic.ini @@ -203,4 +203,7 @@ error_collector.ignore_errors = app.v2.errors:BadRequestError jsonschema.excepti [newrelic:scratch] # monitor_mode = false +[newrelic:dev] +# monitor_mode = false + # ---------------------------------------------------------------------------