Skip to content

Commit

Permalink
Remove ENVIRONMENT_NAME from app config
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 7, 2025
1 parent f5af66f commit fa91fc4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ In addition to the [base Docker image variables](https://github.com/nationalarch

| Variable | Purpose | Default |
| ------------------------ | --------------------------------------------------------- | --------------------------------------------------------- |
| `ENVIRONMENT_NAME` | The name of the environment (for reporting purposes) | `production` |
| `DJANGO_SETTINGS_MODULE` | The configuration to use | `config.settings.production` |
| `ALLOWED_HOSTS` | A comma-separated list of allowed hosts | _none_ on production and staging, `*` on develop and test |
| `USE_X_FORWARDED_HOST` | Use the `X-Forwarded-Host` header in preference to `Host` | `False` |
Expand Down
2 changes: 0 additions & 2 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@

# TNA Configuration

ENVIRONMENT_NAME: str = os.environ.get("ENVIRONMENT_NAME", "production")

BUILD_VERSION: str = os.environ.get("BUILD_VERSION", "")
TNA_FRONTEND_VERSION: str = ""
try:
Expand Down
2 changes: 0 additions & 2 deletions config/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

INSTALLED_APPS = INSTALLED_APPS + ["test"]

ENVIRONMENT_NAME = "test"

SECRET_KEY = "abc123"

DEBUG = True
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ services:
IMAGE_TAG: preview
environment:
- ENVIRONMENT=develop
- ENVIRONMENT_NAME=develop
- DJANGO_SETTINGS_MODULE=config.settings.develop
- SECRET_KEY=abc123
- NPM_DEVELOP_COMMAND=dev
Expand Down

0 comments on commit fa91fc4

Please sign in to comment.