Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

[#153091168] Deploy to www.(system domain) #44

Merged
merged 1 commit into from
Dec 15, 2017

Conversation

46bit
Copy link
Contributor

@46bit 46bit commented Dec 14, 2017

What

The product page app is mostly served as HTML files. However, we redirect .html requests to strip out the extension. Before this change, this redirect would take people onto the cloudapps.digital domain. For instance, visiting https://www.cloud.service.gov.uk/get-started.html gives a redirect to https://paas-product-page.cloudapps.digital/get-started. This is because the app is only seeing a hostname of paas-product-page.cloudapps.digital.

This adds a new hostname to the deployed app, which in production will be www.cloud.service.gov.uk and in development would be www.${DEPLOY_ENV}.dev.cloudpipeline.digital. We are separately configuring CloudFront to provide Host: www.cloud.service.gov.uk, and this new route will mean the app will receive such requests and redirect correctly.

How to review

Code review.

Who can review

Not @camelpunch @46bit

- Switch to autopilot instead of blue-green deploy plugin
  This allows us to use the CF manifest as a source of truth for routes
- Use a script to generate the manifest for deployment
- The base manifest declares the existing
  paas-product-page.cloudapps.digital because we want to keep serving it

This change requires a corresponding change to the Docker image, to
provide the autopilot plugin.
@46bit 46bit force-pushed the paas-redirects-153091168 branch from 2bcf055 to 4d41c0f Compare December 14, 2017 12:50
@46bit 46bit changed the title [WIP] [#153091168] Deploy to www.(system domain) [#153091168] Deploy to www.(system domain) Dec 14, 2017
@LeePorte LeePorte merged commit 4a044f5 into master Dec 15, 2017
@LeePorte LeePorte deleted the paas-redirects-153091168 branch December 15, 2017 11:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants