From c6d6c29e51fa64405d7cae53dc159673abd1f6d2 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Sat, 18 Nov 2023 18:53:12 +0530 Subject: [PATCH] dev: update docker environment variable --- apiserver/.env.example | 2 +- apiserver/plane/settings/common.py | 2 +- deploy/selfhost/docker-compose.yml | 2 +- deploy/selfhost/variables.env | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apiserver/.env.example b/apiserver/.env.example index 2078fc94a..88a9c17f5 100644 --- a/apiserver/.env.example +++ b/apiserver/.env.example @@ -2,10 +2,10 @@ # Debug value for api server use it as 0 for production use DEBUG=0 CORS_ALLOWED_ORIGINS="" -ENVIRONMENT="development" # Error logs SENTRY_DSN="" +SENTRY_ENVIRONMENT="development" # Database Settings PGUSER="plane" diff --git a/apiserver/plane/settings/common.py b/apiserver/plane/settings/common.py index 0ef96717f..4059dff1a 100644 --- a/apiserver/plane/settings/common.py +++ b/apiserver/plane/settings/common.py @@ -301,7 +301,7 @@ if bool(os.environ.get("SENTRY_DSN", False)): ], traces_sample_rate=1, send_default_pii=True, - environment=os.environ.get("ENVIRONMENT", "development"), + environment=os.environ.get("SENTRY_ENVIRONMENT", "development"), profiles_sample_rate=1.0, ) diff --git a/deploy/selfhost/docker-compose.yml b/deploy/selfhost/docker-compose.yml index 74377aef0..d324605ef 100644 --- a/deploy/selfhost/docker-compose.yml +++ b/deploy/selfhost/docker-compose.yml @@ -12,7 +12,7 @@ x-app-env : &app-env - GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET:-""} - DOCKERIZED=${DOCKERIZED:-1} # deprecated - CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-""} - - ENVIRONMENT=${ENVIRONMENT:-"production"} + - SENTRY_ENVIRONMENT=${SENTRY_ENVIRONMENT:-"production"} # Gunicorn Workers - GUNICORN_WORKERS=${GUNICORN_WORKERS:-2} #DB SETTINGS diff --git a/deploy/selfhost/variables.env b/deploy/selfhost/variables.env index f74c838e7..0a47395c3 100644 --- a/deploy/selfhost/variables.env +++ b/deploy/selfhost/variables.env @@ -14,7 +14,7 @@ SENTRY_DSN="" GITHUB_CLIENT_SECRET="" DOCKERIZED=1 # deprecated CORS_ALLOWED_ORIGINS="" -ENVIRONMENT="production" +SENTRY_ENVIRONMENT="production" #DB SETTINGS PGHOST=plane-db