Add an 'update' task to upload application to GAE.

parent 576e1eda
......@@ -30,6 +30,29 @@ Running Locally
3. Visit `http://localhost:8080/hello' in a web browser to see the example run.
Deploying to GAE
----------------
1. To deploy the included example to GAE, you need to first obtain a
GAE account, and pick a GAE application id to use with the
application.
2. Then you need to edit 'war/WEB-INF/appengine-web.xml' to specify
this application. Just replace the contents of the <applciation>
tag (initially 'GAE-APPLICATION-ID-GOES-HERE') in the file with
your GAE ID.
3. Then the Ant task 'update' should upload your application to GAE:
unix$ ant update
You will be prompted for the Google Account credentials associated
with the application ID.
......
......@@ -26,9 +26,11 @@
<copy
todir="war/WEB-INF/lib"
flatten="true">
<!--
<fileset dir="${sdk.dir}/lib/user">
<include name="**/*.jar" />
</fileset>
-->
<fileset dir="${abcl.dir}">
<include name="dist/*.jar" />
</fileset>
......@@ -90,8 +92,14 @@
<dev_appserver war="war" />
</target>
<target name="runserver-debug" depends="compile,resources.copy"
<target name="runserver-debug" depends="compile"
description="Starts the development server.">
<dev_appserver war="war" port="8888"/>
</target>
<target name="update" depends="compile"
description="Uploads the application to App Engine.">
<appcfg action="update" war="war" />
</target>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>abcl-test</application>
<version>1</version>
<application>GAE-APPLICATION-ID-GOES-HERE</application>
<version>1</version>
</appengine-web-app>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment