This part of the Python Guestbook code walkthrough shows how to deploy the application to App Engine.
This page is part of a multi-page tutorial. To start from the beginning and see instructions for setting up, go to Creating a Guestbook.
Deploying the app to App Engine
To upload the guestbook app, run the following command from within the
appengine-guestbook-python directory of your application where the
index.yaml files are located:
gcloud app deploy app.yaml index.yaml
- Include the
--projectflag to specify an alternate GCP Console project ID to what you initialized as the default in the
- Include the
-vflag to specify a version ID, otherwise one is generated for you. Example:
The Datastore indexes
might take some time to generate before your application is available. If the
indexes are still in the process of being generated, you will receive a
NeedIndexError message when accessing your app. This is a transient error, so
try a little later if at first you receive this error.
To learn more about deploying your app from the command line, see Deploying a Python App.
Viewing your deployed application
To launch your browser and view the app at
http://[YOUR_PROJECT_ID].appspot.com, run the following command:
gcloud app browse
You might want to check out the following features:
- Authenticating users with Google Accounts or OAuth
- Reading and writing logs, which shows how to write application logs and how to interpret the system logs
- Using Task queues, which shows how to use task queues to do background work to be run after the request