Appscale

Getting started with AppEngine

I used this example project. git clone git@github.com:GoogleCloudPlatform/appengine-angular-guestbook-java.git

The basic documentation which this is based upon can also be found on https://github.com/GoogleCloudPlatform/appengine-angular-guestbook-java.

Local Development

If you are in the app directory, simply run: mvn appengine:devserver and you can reach the sample app on http://localhost:8080.

Deploying on AppEngine

Setting up AppEngine

Deploying on AppScale

When trying to run appscale deploy appengine-angular-guestbook-java-directory in the folder where your Appscalefile file is , you will get an error message : Couldn't find an app.yaml or appengine-web.xml file in appengine-angular-guestbook-java/..

From one of the community questions it turns out that AppScale needs to have the program in a directory named war. Also old documentation states the following: For Java apps, make sure you point "appscale deploy" at the directory that contains your "war" directory (not the "war" directory itself). If you don't, you'll get the same error message as above.

We can do this: - Make sure the example project is build and packaged: mvn clean package - Rename (or copy) target/appengine-angular-guestbook-java-1.0-SNAPSHOT/ to target/war - Deploy the application (from directory with Appscalefile): appscale deploy appengine-angular-guestbook-java/target - Visit your AppScale hosted site on the url given in the output. * Don’t forget to add to IP(-range) of the AppScale VM to your no-proxy list to access it directly in case of a proxy. - . . . - Profit

More to do!

tags:
blog comments powered by Disqus