Skip to content

Commit 4624100

Browse files
authored
Updated commands for Cloud Run (GoogleCloudPlatform#2773)
* Updated commands for Cloud Run * Made service name consistent in steps 1, 2, and 3 * Removed beta command * Removed whitespace from step 3 so that it can be copy-pasted easily * Update README.md
1 parent 5c0ac23 commit 4624100

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cloud-sql/mysql/sqlalchemy/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -84,24 +84,24 @@ for more details on connecting a Cloud Run service to Cloud SQL.
8484
1. Build the container image:
8585

8686
```sh
87-
gcloud builds submit --tag gcr.io/[YOUR_PROJECT_ID]/run-sql
87+
gcloud builds submit --tag gcr.io/[YOUR_PROJECT_ID]/run-mysql
8888
```
8989

9090
2. Deploy the service to Cloud Run:
9191

9292
```sh
93-
gcloud beta run deploy run-sql --image gcr.io/[YOUR_PROJECT_ID]/run-sql
93+
gcloud run deploy run-mysql --image gcr.io/[YOUR_PROJECT_ID]/run-mysql
9494
```
9595

9696
Take note of the URL output at the end of the deployment process.
9797

9898
3. Configure the service for use with Cloud Run
9999

100100
```sh
101-
gcloud beta run services update run-mysql \
101+
gcloud run services update run-mysql \
102102
--add-cloudsql-instances [INSTANCE_CONNECTION_NAME] \
103103
--set-env-vars CLOUD_SQL_CONNECTION_NAME=[INSTANCE_CONNECTION_NAME],\
104-
DB_USER=[MY_DB_USER],DB_PASS=[MY_DB_PASS],DB_NAME=[MY_DB]
104+
DB_USER=[MY_DB_USER],DB_PASS=[MY_DB_PASS],DB_NAME=[MY_DB]
105105
```
106106
Replace environment variables with the correct values for your Cloud SQL
107107
instance configuration.
@@ -111,4 +111,4 @@ This step can be done as part of deployment but is separated for clarity.
111111
4. Navigate your browser to the URL noted in step 2.
112112

113113
For more details about using Cloud Run see http://cloud.run.
114-
Review other [Python on Cloud Run samples](../../../run/).
114+
Review other [Python on Cloud Run samples](../../../run/).

0 commit comments

Comments
 (0)