Last change
on this file was
13266,
checked in by Mark Evenson, 14 years ago
|
Add an 'update' task to upload application to GAE.
|
File size:
1.5 KB
|
Line | |
---|
1 | Google App Engine |
---|
2 | ================= |
---|
3 | |
---|
4 | Alex Muscar |
---|
5 | |
---|
6 | Running ABCL in a Google App Engine container. |
---|
7 | |
---|
8 | This example shows how to run your Java servlet off ABCL in general |
---|
9 | and in Google App Engine (GAE) in particular. |
---|
10 | |
---|
11 | When uploading your code to the server, be sure to put abcl.jar |
---|
12 | in war/WEB-INF/lib. |
---|
13 | |
---|
14 | |
---|
15 | Running Locally |
---|
16 | --------------- |
---|
17 | |
---|
18 | 1. Download the [Google App Engine SDK for Java][1], unzipping the |
---|
19 | distribution somewhere on your filesystem |
---|
20 | (e.g. "~/work/appengine-java-sdk-1.4.3"). |
---|
21 | |
---|
22 | [1]: http://googleappengine.googlecode.com/files/appengine-java-sdk-1.4.3.zip |
---|
23 | |
---|
24 | 2. Simply invoke Ant on the `build.xml' in this directory with the |
---|
25 | `runserver' target, setting the `sdk.dir' JVM property to specify |
---|
26 | the location of the SDK. |
---|
27 | |
---|
28 | unix$ ant -Dsdk.dir=$HOME/work/appengine-java-sdk-1.4.3/ runserver |
---|
29 | |
---|
30 | 3. Visit `http://localhost:8080/hello' in a web browser to see the example run. |
---|
31 | |
---|
32 | |
---|
33 | Deploying to GAE |
---|
34 | ---------------- |
---|
35 | |
---|
36 | 1. To deploy the included example to GAE, you need to first obtain a |
---|
37 | GAE account, and pick a GAE application id to use with the |
---|
38 | application. |
---|
39 | |
---|
40 | 2. Then you need to edit 'war/WEB-INF/appengine-web.xml' to specify |
---|
41 | this application. Just replace the contents of the <applciation> |
---|
42 | tag (initially 'GAE-APPLICATION-ID-GOES-HERE') in the file with |
---|
43 | your GAE ID. |
---|
44 | |
---|
45 | 3. Then the Ant task 'update' should upload your application to GAE: |
---|
46 | |
---|
47 | unix$ ant update |
---|
48 | |
---|
49 | You will be prompted for the Google Account credentials associated |
---|
50 | with the application ID. |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | |
---|
Note: See
TracBrowser
for help on using the repository browser.