Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aae2eae

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

File tree

Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed

‎appengine/standard_python37/bigquery/main.py

Copy file name to clipboardExpand all lines: appengine/standard_python37/bigquery/main.py
+4-1Lines 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

Copy file name to clipboardExpand all lines: appengine/standard_python37/redis/main.py
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.