From 6e26e73fe3a05f8d9d58be6e2b7017f249a1284d Mon Sep 17 00:00:00 2001 From: Robert Spies Date: Fri, 25 Mar 2016 13:39:19 -0700 Subject: [PATCH] Has the servers listen on 0.0.0.0 so that it works smoother inside the Cloud Shell. --- 1-hello-world/main.py | 2 +- 2-structured-data/main.py | 2 +- 3-binary-data/main.py | 2 +- 4-auth/main.py | 2 +- 5-logging/main.py | 2 +- 6-pubsub/main.py | 2 +- 7-gce/main.py | 2 +- optional-container-engine/main.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/1-hello-world/main.py b/1-hello-world/main.py index 5b398d30..41f14cf0 100644 --- a/1-hello-world/main.py +++ b/1-hello-world/main.py @@ -26,5 +26,5 @@ def hello(): if __name__ == '__main__': - app.run(host='127.0.0.1', port=8080) + app.run(host='0.0.0.0', port=8080) # [END app] diff --git a/2-structured-data/main.py b/2-structured-data/main.py index d5697c6c..b6bd5090 100644 --- a/2-structured-data/main.py +++ b/2-structured-data/main.py @@ -22,4 +22,4 @@ # This is only used when running locally. When running live, gunicorn runs # the application. if __name__ == '__main__': - app.run(host='127.0.0.1', port=8080, debug=True) + app.run(host='0.0.0.0', port=8080, debug=True) diff --git a/3-binary-data/main.py b/3-binary-data/main.py index d5697c6c..b6bd5090 100644 --- a/3-binary-data/main.py +++ b/3-binary-data/main.py @@ -22,4 +22,4 @@ # This is only used when running locally. When running live, gunicorn runs # the application. if __name__ == '__main__': - app.run(host='127.0.0.1', port=8080, debug=True) + app.run(host='0.0.0.0', port=8080, debug=True) diff --git a/4-auth/main.py b/4-auth/main.py index d5697c6c..b6bd5090 100644 --- a/4-auth/main.py +++ b/4-auth/main.py @@ -22,4 +22,4 @@ # This is only used when running locally. When running live, gunicorn runs # the application. if __name__ == '__main__': - app.run(host='127.0.0.1', port=8080, debug=True) + app.run(host='0.0.0.0', port=8080, debug=True) diff --git a/5-logging/main.py b/5-logging/main.py index d5697c6c..b6bd5090 100644 --- a/5-logging/main.py +++ b/5-logging/main.py @@ -22,4 +22,4 @@ # This is only used when running locally. When running live, gunicorn runs # the application. if __name__ == '__main__': - app.run(host='127.0.0.1', port=8080, debug=True) + app.run(host='0.0.0.0', port=8080, debug=True) diff --git a/6-pubsub/main.py b/6-pubsub/main.py index 73d3a303..4e22e5ed 100644 --- a/6-pubsub/main.py +++ b/6-pubsub/main.py @@ -33,4 +33,4 @@ # This is only used when running locally. When running live, gunicorn runs # the application. if __name__ == '__main__': - app.run(host='127.0.0.1', port=8080, debug=True) + app.run(host='0.0.0.0', port=8080, debug=True) diff --git a/7-gce/main.py b/7-gce/main.py index 3975fab6..2205d408 100644 --- a/7-gce/main.py +++ b/7-gce/main.py @@ -31,4 +31,4 @@ # This is only used when running locally. When running live, gunicorn runs # the application. if __name__ == '__main__': - app.run(host='127.0.0.1', port=8080, debug=True) + app.run(host='0.0.0.0', port=8080, debug=True) diff --git a/optional-container-engine/main.py b/optional-container-engine/main.py index 3fc2078e..94f510fc 100644 --- a/optional-container-engine/main.py +++ b/optional-container-engine/main.py @@ -33,4 +33,4 @@ # This is only used when running locally. When running live, gunicorn runs # the application. if __name__ == '__main__': - app.run(host='127.0.0.1', port=8080, debug=True) + app.run(host='0.0.0.0', port=8080, debug=True)