Skip to content

Commit

Permalink
envvar : remove COMMU_ENVIRONMENT since it is not used anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Sep 27, 2023
1 parent a1c1e7f commit 30c2412
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/review-app-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ jobs:
- name: 🤝 Link addons & add environment variables
run: |
$CLEVER_CLI link $REVIEW_APP_NAME --org $REVIEW_APPS_ORGANIZATION_NAME
$CLEVER_CLI env set COMMU_ENVIRONMENT "REVIEW-APP"
$CLEVER_CLI env set COMMU_FQDN "${{ env.DEPLOY_URL }}"
$CLEVER_CLI env set S3_STORAGE_BUCKET_NAME c3-django-review-bucket
$CLEVER_CLI env set S3_STORAGE_BUCKET_NAME_PUBLIC c3-django-review-bucket-public
Expand Down
2 changes: 0 additions & 2 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@
},
}

# Environment, sets the type of env of the app (PROD, DEV…)
COMMU_ENVIRONMENT = os.getenv("COMMU_ENVIRONMENT", "PROD")
COMMU_PROTOCOL = "https"
COMMU_FQDN = os.getenv("COMMU_FQDN", "communaute.inclusion.beta.gouv.fr")

Expand Down
2 changes: 0 additions & 2 deletions config/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,3 @@
"default": {"BACKEND": "django.core.files.storage.FileSystemStorage"},
"staticfiles": {"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"},
}

COMMU_ENVIRONMENT = "DEV"
1 change: 0 additions & 1 deletion lacommunaute/utils/settings_context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def expose_settings(request):
return {
"BASE_TEMPLATE": base_template,
"ALLOWED_HOSTS": settings.ALLOWED_HOSTS,
"COMMU_ENVIRONMENT": settings.COMMU_ENVIRONMENT,
"MATOMO_URL": settings.MATOMO_URL,
"MATOMO_SITE_ID": settings.MATOMO_SITE_ID,
"MATOMO_BASE_URL": settings.MATOMO_BASE_URL,
Expand Down

0 comments on commit 30c2412

Please sign in to comment.