Stay organized with collections Save and categorize content based on your preferences.
Region IDThe REGION_ID
is an abbreviated code that Google assigns based on the region you select when you create your app. The code does not correspond to a country or province, even though some region IDs may appear similar to commonly used country and province codes. For apps created after February 2020, REGION_ID.r
is included in App Engine URLs. For existing apps created before this date, the region ID is optional in the URL.
Learn more about region IDs.
Note: If you are deploying a new Python web service to Google Cloud, we recommend getting started with Cloud Run.Use the Google Cloud CLI to deploy your web service to App Engine.
Though this initial version of the web service doesn't have Firestore in Datastore mode (Datastore) or Firebase authentication, you can deploy it to App Engine at this stage to test and ensure that it works as expected.
Before you beginIf you have completed all the previous steps in this guide, skip this section. Otherwise, complete one of the following:
Start from Build a Python 3 App and complete all the steps leading up to this one.
If you already have a Google Cloud project, you can continue by downloading a copy of the web service:
Download the sample application repository using Git:
git clone https://github.com/GoogleCloudPlatform/python-docs-samples
Alternatively, you can download the sample as a zip file and then extract it.
Navigate to the directory that contains a copy of the files from the previous step:
cd python-docs-samples/appengine/standard_python3/building-an-app/building-an-app-1
To deploy your web service, you run the gcloud app deploy
command from the root directory of your project, where your app.yaml
file is located:
gcloud app deploy
Each time that you deploy your web service, a new version of that app is created in App Engine. During deployment, a container image is created using the Cloud Build service, and then a copy is uploaded to Google Cloud Storage before it is run in App Engine.
For more information about deploying to App Engine, see Testing and Deploying Your App.
Note: Files listed in your.gcloudignore
file are not uploaded to App Engine during deployment. Viewing your service
To quickly launch your browser and access your web service at https://PROJECT_ID.REGION_ID.r.appspot.com
, enter the following command:
gcloud app browse
Tip: If you would like to change the URL of your web service to something other than the default https://PROJECT_ID.REGION_ID.r.appspot.com
URL, you can add a custom domain. Managing services and versions
You've just deployed a version of the web service to App Engine. Each time that you deploy a version of your code, that version is created in a service. The initial deployment to App Engine must be created in the default
service, but for subsequent deployments, you can specify the name of your service in your app.yaml
file.
You can update a service at any time by running the gcloud app deploy
command and deploying new versions to that service. Each time that you update a service, traffic is automatically routed to the version last deployed. However, you can include gcloud
flags to change the deploy command behavior.
Use the Google Cloud console to manage and view the services and versions that you deploy to App Engine:
Use the Google Cloud console to view your App Engine services:
Use the Google Cloud console to view your versions:
For more information about the multi-service design pattern, see An Overview of App Engine. To learn how to send requests to specific services and versions, see Splitting Traffic.
Next stepsNow that you have a Python service running on App Engine, you're ready to learn how to handle data with Datastore.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The `REGION_ID` is a code assigned by Google based on the region selected during app creation, included in App Engine URLs for apps created after February 2020."],["You can deploy your web service to App Engine using the `gcloud app deploy` command, with each deployment creating a new version of your app."],["The `gcloud app browse` command allows you to quickly access your deployed web service in a browser using a URL containing your `PROJECT_ID` and `REGION_ID`."],["App Engine manages multiple versions of your service, with the initial deployment in the `default` service, and updates automatically routing traffic to the latest deployed version."],["You can use the Google Cloud console to view and manage your App Engine services and the different deployed versions."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4