Skip to content

Commit aae2eae

Browse files
diengelke
authored andcommitted
Be consistent about how we run samples locally (GoogleCloudPlatform#1881)
1 parent 4efa222 commit aae2eae

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

appengine/standard_python37/bigquery/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@ def main():
3939

4040

4141
if __name__ == '__main__':
42-
app.run(debug=True)
42+
# This is used when running locally only. When deploying to Google App
43+
# Engine, a webserver process such as Gunicorn will serve the app. This
44+
# can be configured by adding an `entrypoint` to app.yaml.
45+
app.run(host='127.0.0.1', port=8080, debug=True)
4346
# [END gae_python37_bigquery]

appengine/standard_python37/redis/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ def index():
3939

4040

4141
if __name__ == '__main__':
42-
# This is used when running locally.
42+
# This is used when running locally only. When deploying to Google App
43+
# Engine, a webserver process such as Gunicorn will serve the app. This
44+
# can be configured by adding an `entrypoint` to app.yaml.
4345
app.run(host='127.0.0.1', port=8080, debug=True)

0 commit comments

Comments
 (0)