New live demo with Apache proxying, refs #1522

This commit is contained in:
Simon Willison 2021-11-19 14:50:06 -08:00
commit c76bbd4066
3 changed files with 60 additions and 0 deletions

13
demos/apache-proxy/deploy.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
# https://til.simonwillison.net/cloudrun/ship-dockerfile-to-cloud-run
NAME="datasette-apache-proxy-demo"
PROJECT=$(gcloud config get-value project)
IMAGE="gcr.io/$PROJECT/$NAME"
gcloud builds submit --tag $IMAGE
gcloud run deploy \
--allow-unauthenticated \
--platform=managed \
--image $IMAGE $NAME \
--port 80