# Staging/Test server ignored the environment variable

**URL:** https://meta.discourse.org/t/staging-test-server-ignored-the-environment-variable/390085
**Category:** Self-hosting
**Created:** [December 1, 2025, 6:48pm UTC](https://meta.discourse.org/t/staging-test-server-ignored-the-environment-variable/390085 "2025-12-01T18:48:21Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![jimmy0017](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@jimmy0017](https://meta.discourse.org/u/jimmy0017)
#### Post date: [December 1, 2025, 6:48pm UTC](https://meta.discourse.org/t/staging-test-server-ignored-the-environment-variable/390085/1 "2025-12-01T18:48:21Z")

</div>

I followed the following setup in my staging/test server in `web_only.yml`. But it seems that the backups are still going in the latest discourse? Seems that it is ignoring the environment variable.

```yaml
  ## Staging server specific settings
  DISCOURSE_AUTOMATIC_BACKUPS_ENABLED: false
  DISCOURSE_LOGIN_REQUIRED: true
  DISCOURSE_DISABLE_EMAILS: 'yes'
  DISCOURSE_S3_DISABLE_CLEANUP: true
  DISCOURSE_ALLOW_RESTORE: true

```

---

_[View the full topic](https://meta.discourse.org/t/staging-test-server-ignored-the-environment-variable/390085)._
