Skip to content

Commit 36bdb45

Browse files
committed
docs: remove staging environment from twelve-factor refactoring plan
- Update core principles to focus on local/production parity - Remove staging environment from environment standardization tasks - Simplify directory structure to exclude staging-specific files - Update testing strategy to focus on two-environment approach - Maintain scope manageable while achieving twelve-factor compliance
1 parent 2a4ddf3 commit 36bdb45

File tree

1 file changed

+2
-6
lines changed
  • infrastructure/docs/refactoring/twelve-factor-refactor

1 file changed

+2
-6
lines changed

infrastructure/docs/refactoring/twelve-factor-refactor/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ From the official Torrust Tracker documentation, we need to account for:
7272
### Core Principles
7373

7474
1. **Infrastructure ≠ Application**: Clean separation of concerns
75-
2. **Environment Parity**: Same deployment process for local/staging/production
75+
2. **Environment Parity**: Same deployment process for local/production
7676
3. **Configuration as Environment**: All config via environment variables
7777
4. **Immutable Infrastructure**: VMs are cattle, not pets
7878
5. **Deployment Pipeline**: Clear build → release → run stages
@@ -103,7 +103,7 @@ the flexibility to deploy to multiple cloud providers.
103103

104104
#### 1.3 Environment Standardization
105105

106-
- Standardize local, staging, and production environments
106+
- Standardize local and production environments
107107
- Create environment-specific variable files
108108
- Implement configuration validation
109109

@@ -191,7 +191,6 @@ torrust-tracker-demo/
191191
│ └── config/ # Configuration templates
192192
│ ├── environments/
193193
│ │ ├── local.env
194-
│ │ ├── staging.env
195194
│ │ └── production.env
196195
│ └── templates/
197196
│ ├── tracker.toml.tpl
@@ -200,15 +199,13 @@ torrust-tracker-demo/
200199
│ ├── compose/ # Environment-specific compose files
201200
│ │ ├── base.yaml # Base services
202201
│ │ ├── local.yaml # Local overrides
203-
│ │ ├── staging.yaml # Staging overrides
204202
│ │ └── production.yaml # Production overrides
205203
│ ├── config/ # Application configurations
206204
│ │ └── templates/ # Configuration templates
207205
│ └── scripts/ # Application-specific scripts
208206
└── docs/
209207
└── deployment/ # Deployment documentation
210208
├── local.md
211-
├── staging.md
212209
└── production.md
213210
```
214211

@@ -304,7 +301,6 @@ make test-services # Health checks, endpoints
304301
```bash
305302
# Multi-environment testing
306303
make test-local # Local environment
307-
make test-staging # Staging environment
308304
make test-production # Production environment (dry-run)
309305
```
310306

0 commit comments

Comments
 (0)