dev: update docker environment variable

This commit is contained in:
pablohashescobar 2023-11-18 18:53:12 +05:30
parent 0bb13148b7
commit c6d6c29e51
4 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,10 @@
# Debug value for api server use it as 0 for production use # Debug value for api server use it as 0 for production use
DEBUG=0 DEBUG=0
CORS_ALLOWED_ORIGINS="" CORS_ALLOWED_ORIGINS=""
ENVIRONMENT="development"
# Error logs # Error logs
SENTRY_DSN="" SENTRY_DSN=""
SENTRY_ENVIRONMENT="development"
# Database Settings # Database Settings
PGUSER="plane" PGUSER="plane"

View File

@ -301,7 +301,7 @@ if bool(os.environ.get("SENTRY_DSN", False)):
], ],
traces_sample_rate=1, traces_sample_rate=1,
send_default_pii=True, send_default_pii=True,
environment=os.environ.get("ENVIRONMENT", "development"), environment=os.environ.get("SENTRY_ENVIRONMENT", "development"),
profiles_sample_rate=1.0, profiles_sample_rate=1.0,
) )

View File

@ -12,7 +12,7 @@ x-app-env : &app-env
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET:-""} - GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET:-""}
- DOCKERIZED=${DOCKERIZED:-1} # deprecated - DOCKERIZED=${DOCKERIZED:-1} # deprecated
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-""} - CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-""}
- ENVIRONMENT=${ENVIRONMENT:-"production"} - SENTRY_ENVIRONMENT=${SENTRY_ENVIRONMENT:-"production"}
# Gunicorn Workers # Gunicorn Workers
- GUNICORN_WORKERS=${GUNICORN_WORKERS:-2} - GUNICORN_WORKERS=${GUNICORN_WORKERS:-2}
#DB SETTINGS #DB SETTINGS

View File

@ -14,7 +14,7 @@ SENTRY_DSN=""
GITHUB_CLIENT_SECRET="" GITHUB_CLIENT_SECRET=""
DOCKERIZED=1 # deprecated DOCKERIZED=1 # deprecated
CORS_ALLOWED_ORIGINS="" CORS_ALLOWED_ORIGINS=""
ENVIRONMENT="production" SENTRY_ENVIRONMENT="production"
#DB SETTINGS #DB SETTINGS
PGHOST=plane-db PGHOST=plane-db