<aside> 🔁 Synced from GitHub #a9b1357401be. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.

</aside>

Environments & deploys

Three environments

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.

How code gets deployed

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]

Configuration

Order of deploys between services

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.