blob: 71f85f0bbb2d4127a4a91c283b7513697f92a36d [file] [log] [blame] [view]
Garret Kellycb74aff2019-10-21 14:53:09 -04001# Site Infrastructure
2This directory contains the scripts and configuration required to update the [opentitan.org][ot] public-facing website.
3
4# Dependencies
5These scripts require that you have [hugo][install-hugo] and [gcloud][install-gcloud] installed and that your gcloud is configured with the correct GCP project.
6The production site project can be selected with:
7
8```
9gcloud config set project gold-hybrid-255313
10```
11
12# Serving Locally
13To serve the site locally run the `serve.sh` script, which will build and serve the site on [localhost:1313](http://localhost:1313), automatically rebuilding pages when they are changed.
14
15# Deploying
16To deploy the site use the `deploy.sh` script.
17Specify the environment (either `public` or `staging`) as the first argument to choose between the two environments.
18The script takes care of flushing the CDN cache to make sure changes are visible as quickly as possible.
19
20[install-gcloud]: https://cloud.google.com/sdk/install
21[install-hugo]: https://github.com/gohugoio/hugo#choose-how-to-install
22[ot]: https://opentitan.org