Deploying to App Engine

This page shows you how to deploy your guestbook to App Engine by using the gcloud tool.

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 your application

To deploy your app to App Engine:

  1. Navigate to the appengine-guestbook-go directory:

    cd appengine-guestbook-go
    
  2. Deploy the app:

    gcloud app deploy app.yaml index.yaml
    

    If compilation errors occur, fix as necessary and then rerun the gcloud app deploy command.

You might need to wait a few minutes before your app begins to serve traffic.

Verifying index generation

If you have specified the custom index in index.yaml, after your application is deployed, the Cloud Datastore Indexes are automatically generated. This operation can take some time, and any visitors to your site will receive a DatastoreNeedIndexException until the indexes are built. You can monitor the progress of the operation by visiting the Indexes page in the Cloud Platform Console:

Go to the Indexes page

Viewing your deployed application

In your browser, visit this URL:

https://[YOUR_PROJECT_ID].appspot.com

Tip: You can run the following command to open your browser to your app's URL:

gcloud app browser

What's next

フィードバックを送信...

App Engine standard environment for Go