This page takes you through the steps of creating a new App Engine app in the Google Cloud Console, authenticating with Google, and deploying your project to App Engine.
Before you begin
You need a Google Cloud project with an App Engine application to deploy to. If you don't already have one, use the Google Cloud Console to set up your Cloud project:
- Select or create a new Cloud project.
Sign in to a Google account that is used to deploy your project to App Engine.
Select File > Sign in to Google.
If you see Manage Google Accounts instead of the Sign in to Google option, that means you are already signed in, so you can skip these account sign in steps.
Your system browser opens outside of Eclipse and asks for the permissions it needs to manage your App Engine applications:
Click Allow and close the window. Eclipse is now signed into your account.
Ensure that the
appengine-web.xmlfile is in the
WEB-INFfolder of your web application.
Ensure that the project has the App Engine Project facet. If you created it using the wizard, it should already have this facet. Otherwise:
Right click the project in the Package Explorer to bring up the context menu.
Select Configure > Convert to App Engine Project.
Deploy the Project to App Engine
To deploy the project to App Engine standard environment:
Right click the project in the Package Explorer to open the context menu.
Select Deploy to App Engine Standard.
A dialog pops up.
Select the account you want to deploy with, or add a new account.
The list of projects the account has access to loads. Select the one you want to deploy to.
A background job launches that deploys the project to App Engine. The output of the job is visible in the Eclipse Console view.
By default, App Engine stops the previous version of your application and immediately promotes your new code to receive all traffic. If you'd rather manually promote it later using gcloud or the Google Cloud Console , uncheck Promote the deployed version to receive all traffic. If you don't want to stop the previous version, uncheck Stop previous version.