1.6 KiB
Staging
-
Login:
cf login -a api.london.cloud.service.gov.uk -u <your_username>
-
Set your deployment target (staging):
cf target -o dluhc-core -s staging
-
Create required Postgres and S3 bucket backing services (this will take ~15 mins to finish creating):
cf create-service postgres tiny-unencrypted-13 dluhc-core-staging-postgres
cf create-service aws-s3-bucket default dluhc-core-staging-import-bucket
cf create-service aws-s3-bucket default dluhc-core-staging-export-bucket
-
Deploy manifest:
cf push dluhc-core-staging --strategy rolling
-
Bind S3 services to app:
cf bind-service dluhc-core-staging dluhc-core-staging-import-bucket -c '{"permissions": "read-only"}'
cf bind-service dluhc-core-staging dluhc-core-staging-export-bucket -c '{"permissions": "read-write"}'
Production
-
Login:
cf login -a api.london.cloud.service.gov.uk -u <your_username>
-
Set your deployment target (production):
cf target -o dluhc-core -s production
-
Create required Postgres and S3 bucket backing services (this will take ~15 mins to finish creating):
cf create-service postgres small-ha-13 dluhc-core-production-postgres
cf create-service aws-s3-bucket default dluhc-core-production-import-bucket
cf create-service aws-s3-bucket default dluhc-core-production-export-bucket
-
Deploy manifest:
cf push dluhc-core-production --strategy rolling
-
Bind S3 services to app:
cf bind-service dluhc-core-production dluhc-core-production-import-bucket -c '{"permissions": "read-only"}'
cf bind-service dluhc-core-production dluhc-core-production-export-bucket -c '{"permissions": "read-write"}'