summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorGravatar Elian ☕️ <elian.vancutsem@vbridge.eu> 2021-10-12 18:35:05 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-12 12:35:05 -0400
commitd90c0456b5be111b491a7f8b017d41f3b1e9dcf6 (patch)
treee465976d1ccbedfb0ef506cb7077b739daa62e8f /docs/src
parentb21eafd35ca5c0fbea8c8b32354a9006b36b44a6 (diff)
downloadastro-d90c0456b5be111b491a7f8b017d41f3b1e9dcf6.tar.gz
astro-d90c0456b5be111b491a7f8b017d41f3b1e9dcf6.tar.zst
astro-d90c0456b5be111b491a7f8b017d41f3b1e9dcf6.zip
Add docs for deploying using Google Cloud (#1533)
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/pages/guides/deploy.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/src/pages/guides/deploy.md b/docs/src/pages/guides/deploy.md
index 760404052..e8b6f4523 100644
--- a/docs/src/pages/guides/deploy.md
+++ b/docs/src/pages/guides/deploy.md
@@ -205,6 +205,38 @@ You can skip the `netlify.toml` file and go directly to [Netlify](https://netlif
- **Build Command:** `astro build` or `npm run build`
- **Publish directory:** `dist`
+## Google Cloud
+
+different from most available deploy options here, [Google Cloud](<https://cloud.google.com>) requires some UI clicks to deploy projects. (Most of these actions can also be done using the gcloud CLI).
+
+### Cloud Run
+
+1. Create a new GCP project, or select one you already have
+
+2. Make sure the Cloud Run API is enabled
+
+3. Create a new service
+
+4. use a container from Docker Hub or build your own using [Cloud Build](<https://cloud.google.com/build>)
+
+5. Configure a port from which the files are served
+
+6. Enable public access by adding a new permission to `allUsers` called `Cloud Run Invoker`
+
+### Cloud Storage
+
+1. Create a new GCP project, or select one you already have
+
+2. Create a new bucket under [Cloud Storage](<https://cloud.google.com/storage>)
+
+3. give it a name and other required settings
+
+4. Upload your `dist` folder into it or upload using [Cloud Build](<https://cloud.google.com/build>)
+
+5. Enable public acces by adding a new permission to `allUsers` called `Storage Object Viewer`
+
+6. Edit the website configuration and add `ìndex.html` as entrypoint and `404.html` as errorpage
+
## Google Firebase
1. Make sure you have [firebase-tools](https://www.npmjs.com/package/firebase-tools) installed.