Skip to content

Commit 165cf17

Browse files
Merge two gcloud commands into a single command (#1)
1 parent c83f2b5 commit 165cf17

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ This template can be used to deploy your Next.js application as a Docker contain
99
1. Install the [Google Cloud SDK](https://cloud.google.com/sdk/docs/install) so you can use `gcloud` on the command line.
1010
1. Run `gcloud auth login` to log in to your account.
1111
1. [Create a new project](https://cloud.google.com/run/docs/quickstarts/build-and-deploy) in Google Cloud Run (e.g. `nextjs-docker`). Ensure billing is turned on.
12-
1. Build your container image using Cloud Build: `gcloud builds submit --tag gcr.io/PROJECT-ID/helloworld --project PROJECT-ID`. This will also enable Cloud Build for your project.
13-
1. Deploy to Cloud Run: `gcloud run deploy --image gcr.io/PROJECT-ID/helloworld --project PROJECT-ID --platform managed --allow-unauthenticated`. Choose a region of your choice.
12+
1. Deploy to Cloud Run: `gcloud run deploy helloworld --source=. --project=PROJECT-ID --region=us-central1 --allow-unauthenticated`.
1413

15-
- You will be prompted for the service name: press Enter to accept the default name, `helloworld`.
16-
- You will be prompted for [region](https://cloud.google.com/run/docs/quickstarts/build-and-deploy#follow-cloud-run): select the region of your choice, for example `us-central1`.
14+
- You must replace `PROJECT-ID` with your Google Cloud Project ID.
15+
- You may replace `us-central1` with a different Google Cloud [region](https://cloud.google.com/run/docs/locations).
1716

1817
For more information, see the Next.js [deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying#self-hosting).
1918

0 commit comments

Comments
 (0)