Web Deployment
Deployment
Pushing to main triggers CodeBuild, or deploy locally (faster + free):
cd statux-web
# Landing (statux.io)
aws s3 sync landing/ s3://statux-landing-prod --delete --exclude "shared/*"
aws s3 sync shared/ s3://statux-landing-prod/shared/
aws cloudfront create-invalidation --distribution-id EVHSVR55HETJY --paths "/*"
# Statux Pages
aws s3 sync statuspages/ s3://statux-statuspage-web-prod --delete --exclude "shared/*"
aws s3 sync shared/ s3://statux-statuspage-web-prod/shared/
aws cloudfront create-invalidation --distribution-id E2SIXSFPDDG7V1 --paths "/*"
# Divinux (one app, two homes — preview/ deploys to both buckets)
aws s3 sync preview/ s3://statux-divinux-web-prod --delete --exclude "shared/*"
aws s3 sync shared/ s3://statux-divinux-web-prod/shared/
aws cloudfront create-invalidation --distribution-id E2GOOBI9C7S6YX --paths "/*"
aws s3 sync preview/ s3://statux-preview-web-prod --delete --exclude "shared/*"
aws s3 sync shared/ s3://statux-preview-web-prod/shared/
aws cloudfront create-invalidation --distribution-id E3DD9VTFNH001G --paths "/*"
CloudFront Distribution IDs
| Site | Domain | Bucket | CloudFront ID |
|---|---|---|---|
| Landing | statux.io | statux-landing-prod | EVHSVR55HETJY |
| Divinux (live) | divinux.statux.io | statux-divinux-web-prod | E2GOOBI9C7S6YX |
| Divinux (preview/demo) | preview.statux.io | statux-preview-web-prod | E3DD9VTFNH001G |
| Pages | statuspage.statux.io | statux-statuspage-web-prod | E2SIXSFPDDG7V1 |
| Alerts | alerts.statux.io | statux-alerts-web-prod | E3Q0DZM3NF5A2B |
| Synthetics | synthetics.statux.io | statux-synthetics-web-prod | E3VIOK3AWE1I1T |
The preview/ directory is the unified Divinux app; it deploys to both the live (divinux.statux.io) and demo (preview.statux.io) buckets.