Showing posts with label google app engine. Show all posts
Showing posts with label google app engine. Show all posts

How to upload web application to App Engine

Hello all,

It's been a while but here I come with another hopefully useful post :)

Ever wondered what you need to do in order to upload your web app to the Google AppSpot (app engine)?

Let's rock!

Assuming you already have an account (if not create one https://appengine.google.com/)
Requirements:
1. Login to your account and create new application - follow on screen instructions and use common sense :)

2. Download official App Engine SDK: https://developers.google.com/appengine/downloads

3. Create appengine-web.xml (next to standard web.xml file):

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>your_app_name</application>
  <version>1</version>
  <threadsafe>true</threadsafe>
  <sessions-enabled>true</sessions-enabled>
</appengine-web-app>


4. Build the app locally like usual to create WAR file and related app folder (if you WAR does not extract automatically you can extract it manually), e.g.:
/home/user/dev/app-name/target/app-name.war
/home/user/dev/app-name/target/app-name

5. Go to the bin directory of the app-engine SDK home:
cd /home/user/APP_ENGINE_SDK_HOME/bin/

6. Run the appcfg script:
./appcfg.sh update /home/user/dev/app-name/target/app-name/

OR equivalent for other OS

It will prompt you for your registered e-mail and password and that's it. All done :)

In few minutes your application should be available online!

Have fun!