File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111# See the License for the specific language governing permissions and
1212# limitations under the License.
13-
14- # [START memorystore_app_yaml]
13+ # [START memorystore_app_yaml_flex]
1514runtime : python
1615env : flex
1716entrypoint : gunicorn -b :$PORT main:app
1817
1918runtime_config :
2019 python_version : 3
2120
22- # update with Redis instance host IP, port
21+ # Update with Redis instance IP and port
2322env_variables :
24- REDISHOST : redis-ip
25- REDISPORT : 6379
23+ REDISHOST : ' <REDIS_IP> '
24+ REDISPORT : ' 6379'
2625
27- # update with Redis instance network name
26+ # Update with Redis instance network name
2827network :
2928 name : default
30-
31- # [END memorystore_app_yaml]
29+ # [END memorystore_app_yaml_flex]
Original file line number Diff line number Diff line change 1+ # Copyright 2018 Google Inc.
2+ # Licensed under the Apache License, Version 2.0 (the "License");
3+ # you may not use this file except in compliance with the License.
4+ # You may obtain a copy of the License at
5+ #
6+ # http://www.apache.org/licenses/LICENSE-2.0
7+ #
8+ # Unless required by applicable law or agreed to in writing, software
9+ # distributed under the License is distributed on an "AS IS" BASIS,
10+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+ # See the License for the specific language governing permissions and
12+ # limitations under the License.
13+ # [START memorystore_app_yaml_standard]
14+ runtime : python37
15+ entrypoint : gunicorn -b :$PORT main:app
16+
17+ # Update with Redis instance details
18+ env_variables :
19+ REDISHOST : ' <REDIS_IP>'
20+ REDISPORT : ' 6379'
21+
22+ # Update with Serverless VPC Access connector details
23+ vpc_access_connector :
24+ name : ' projects/<PROJECT_ID>/locations/<REGION>/connectors/<CONNECTOR_NAME>'
25+ # [END memorystore_app_yaml_standard]
You can’t perform that action at this time.
0 commit comments