|
1 | | -# Deploys |
| 1 | +# Deployment |
2 | 2 |
|
3 | | -This repo uses [Heroku automatic deploys] to deploy the latest code in the |
4 | | -`main` branch directly to https://prototype-kit.service.gov.uk. |
| 3 | +## Production |
5 | 4 |
|
6 | | -The custom domain is managed by GOV.UK, see [ticket #71] for more details. We |
7 | | -redirect users from the Heroku domain to the custom domain when the |
8 | | -`HEROKU_APP_NAME` and `HEROKU_CUSTOM_DOMAIN` environment variables are set, |
9 | | -which we set by hand as config vars in the Heroku app dashboard. |
| 5 | +The `main` branch of this repo is continuously [deployed to Netlify using their GitHub integration](https://docs.netlify.com/build/git-workflows/overview/). |
10 | 6 |
|
11 | | -Deployments are configured manually using the dashboard for the |
12 | | -[govuk-prototype-kit-docs pipeline]. To check the configuration or any |
13 | | -deployment issues, log into Heroku using the team credentials in Bitwarden. |
| 7 | +The site is owned by the "GOV.UK Design System team in Netlify. |
| 8 | + |
| 9 | +The custom domain is managed by GOV.UK, see [ticket #71] for more details. |
14 | 10 |
|
15 | | -[Heroku automatic deploys]: https://devcenter.heroku.com/articles/github-integration#automatic-deploys |
16 | 11 | [ticket #71]: https://github.com/alphagov/govuk-prototype-kit-docs/issues/71 |
17 | | -[govuk-prototype-kit-docs pipeline]: https://dashboard.heroku.com/pipelines/f0879aaf-21f5-4430-a1d5-7adc4740a066 |
| 12 | + |
| 13 | +## Pull Request previews |
| 14 | + |
| 15 | +Previews of Pull Requests are automatically published to a URL which has the |
| 16 | +prefix `deploy-preview` followed by the identifier number of the pull request. |
| 17 | + |
| 18 | +For example, pull request #137 would be deployed to |
| 19 | +`deploy-preview-137--prototype-kit-docs.netlify.app`. |
| 20 | + |
| 21 | +The Netlify bot should comment on each PR shortly after building with a link to |
| 22 | +the preview. |
0 commit comments