<aside> 🔁 Synced from GitHub #a9b1357401be. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.
</aside>
| Environment | Backend hosting | Database | Web app |
|---|---|---|---|
| Development | AWS ECS cluster DevCluster (us-east-2) |
Dev SQL Server | Azure Static Web App, built from develope |
| Staging | AWS ECS cluster StagingCluster |
Staging SQL Server (three tenants) | Azure Static Web App, built from staging |
| Production | AWS ECS cluster ProdCluster |
Production SQL Server | Azure Static Web App, built from main |
Images are stored in Amazon ECR. ewa-service still has older Azure container workflows (developoldazure); they are not the live path.
flowchart LR
D[push to develop] -->|dev_deploy.yml / aws_develop.yaml| DEV[DevCluster]
S[push to staging] -->|staging_deploy.yml / aws_staging.yaml| STG[StagingCluster]
M[push to master/main] -->|prod_build.yml: build + push image| ECR[(ECR)]
ECR -->|release-deploy-prod.yml / release-deploy-main.yaml<br/>manual workflow_dispatch| PROD[ProdCluster]
core-backend-migrator) before the service is updated. The migrator applies pending migrations to membership, analytics and every tenant. See migrations.promotion-alert and standup-digest workflows that feed Release Radar..env only loads in local development (DotEnv.Load() under IsDevelopment). Secrets in it are encrypted (AES); the migrator and app decrypt them.When a change spans services, deploy core-backend first (it carries the database migration), then ewa-service, then the web app. ewa-service code that reads a new tenant column fails everywhere until core-backend's migration has run in that environment.