Deployment
Payofy infrastructure runs on AWS and provisions via the AWS Cloud Development Kit (CDK).
Target environments
dev: Points to the Kurv sandbox environment (api.dev.payofy.si).prod: Points to live production rails (api.payofy.si).
Service mapping
| Service | Destination | Purpose |
|---|---|---|
payofy-api | ECS Fargate | Public HTTP API and inbound webhooks |
payofy-worker | ECS Fargate | BullMQ worker and scheduled jobs |
payofy-admin | S3 + CloudFront | Ops console for internal staff |
payofy-portal | S3 + CloudFront | Self-service partner portal |
payofy-docs | S3 + CloudFront | Developer documentation site |
Automated deployment scripts
Deployment scripts live in scripts/deploy/. Run deployments with targeted parameters:
# Deploy API service to dev
./scripts/deploy/deploy.sh api dev
# Deploy worker service to prod
./scripts/deploy/deploy.sh worker prod