We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cd911d commit d9adb63Copy full SHA for d9adb63
iap/example_startup_script.sh
@@ -0,0 +1,11 @@
1
+apt-get -y install git
2
+apt-get -y install virtualenv
3
+git clone https://github.com/GoogleCloudPlatform/python-docs-samples
4
+cd python-docs-samples/iap
5
+virtualenv venv
6
+source venv/bin/activate
7
+pip install -r requirements.txt
8
+cat example_gce_backend.py |
9
+ sed -e "s/YOUR_BACKEND_SERVICE_ID/$(gcloud compute backend-services describe my-backend-service --global --format="value(id)")/g" |
10
+ sed -e "s/YOUR_PROJECT_ID/$(gcloud config get-value account | tr -cd "[0-9]")/g" > real_backend.py
11
+gunicorn real_backend:app -b 0.0.0.0:80
0 commit comments