Google App Engine

Deploying a New Application GAE

With Codenvy you can deploy Java, Python and PHP apps to Google App Engine.

  • create a new project from scratch and choose either Java web application or Python and Google App Engine as PaaS (if you have already created a project, then open it and go to PaaS > Google App Engine > Create Application)
  • enter project name and choose a Template
  • check Use existing GAE ID if you want to overwrite an existing app
  • click Create button
  • if you deploy your first app to GAE from Codenvy you need to authenticate
  • allow access to proceed
  • enter required information at the GAE webpage (Application Title is optional)
gae_create

Click to see a full sized image

  • once you click Create Application, the browser’s tab will be automatically closed in a few seconds
  • when you are back to your Codenvy workspace, click Deploy to push the app to GAE

The process may take several minutes, and you will see a confirmation message in the Output panel with the application url - yourappname.appspot.com

(warning) Make sure you use the same Google ID to log in to Codenvy and Google App Engine. Using different accounts may cause 401 or 404 errors. 401 error can be fixed by logging out, and then logging in Google App Engine at PaaS > Google App Engine > Logout/Login

Watch the entire process of deploying an app to GAE in the below video

Updating an Existing Application GAE

Having deployed your application to GAE, you can make some changes to the code and easily update it.

  • The application is updated at Project > PaaS > Google App Engine
  • The project is re-built and re-deployed once you press Application Update button. An alternative way to update your GAE app is to go to PaaS > Google App Engine > Update Application.

gae_manage

Three messages (project build, start and end of deployment) appear in the Output panel one by on. Once done, changes are implemented in the application hosted on appspot.com.

Have a look at this short video demonstrating how you can update your GAE apps directly from Codenvy:

Managing GAE Applications

You can manage your GAE application at Project  >PaaS > Google App Engine.

It’s possible to modify and vacuum Indexes, PageSpeed, Queues, DoS as well as have a look at recourse limits, cron jobs and backends.

gae_manage1

Import an Existing GAE Application

If you have a GAE application which you need to import to Codenvy, here’s a workaround (this is not a direct import of source code, so it will take a few minutes or so):

  • download source code of your app (of course, this step can be omitted if you have in on GitHub and sync it regularly). You can download source code of your Java and Python apps using SDK command line (check out GAE documentation).
  • push this code to GitHub or whatever remote repository you use
  • clone your GitHub project to Codenvy
  • open appengine-web.xml file and edit application ID, if necessary, for example <application>javagae112</application> (enter the app ID you need to update on GAE)
  • if you want to create a new version of the same app, you can change it as well, for example <version>2</version>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>java112</application>
  <version>1</version>
  • update application at Project > PaaS > Google App Engine

Once the app is updated, you can change and update it anytime directly from Codenvy.

(warning) Since Codenvy uses Maven as a build manager, the projects you clone should also be built with Maven, i.e. contain pom.xml file in the root project folder.

You may have a look at this short video demonstrating the procedure of importing an existing GAE app to Codenvy using GitHub.

Up ↑