Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit df15ea7

Browse files
committed
minor container tweaks
Change-Id: Ie57507f38c7749d5e1fb9d2d639c29762c5e4e77
1 parent 38f9e78 commit df15ea7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

step4-cloudds-cloudrun-py3/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
from datetime import datetime
16-
import os
1716
from flask import Flask, render_template, request
1817
from google.cloud import datastore
1918

@@ -40,5 +39,6 @@ def root():
4039
return render_template('index.html', visits=visits)
4140

4241
if __name__ == '__main__':
42+
import os
4343
app.run(debug=True, threaded=True, host='0.0.0.0',
4444
port=int(os.environ.get('PORT', 8080)))

step4a-cloudrun-bldpks-py3/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ metadata:
1818
name: default
1919
labels:
2020
migrated-from: app-engine
21-
cloud.googleapis.com/location: us-west1
21+
cloud.googleapis.com/location: APP_REGION
2222
spec:
2323
template:
2424
metadata:

0 commit comments

Comments
 (0)