Hi Jake,

Thanks for you example on how to use the appcfg with backends.

I think the documentation really needs to include some solid examples on how 
to use appcfg.

I found this to be lacking in alot of parts through the Google App Engine 
documentation. 

Now, for the apppcfg parameters:

   - <dir>  needs to point to your app's war directory
   - [updates] you can leave blank or you can specify which once to deploy. 
   Other wise if it is black it will deploy all your backends defined in 
   backends.xml
   

For others reading this that are trying to figure out how to get your 
backends.xml to appear in the Admin UI you need to ensure you have the 
following:

1. A valid backends.xml file. This means the class elements and correct 
nesting of elements. Be care of using lower case b's in your class elements.
For example, a lower case b will cause the deploy to fail as it does not 
validate against the backends.xsd:
<?xml version="1.0" encoding="UTF-8"?>
<backends>
    <backend name="spider">
        <class>b2</class>        
        <instances>1</instances>
    </backend>
</backends>

You need to have something like

<?xml version="1.0" encoding="UTF-8"?>
<backends>
    <backend name="spider">
        <class>B2</class>        
        <instances>1</instances>
    </backend>
</backends>

2. Until a is fixes made, you'll probably need to use appcfg to make your 
backends appear in the admin UI.
Find your appcfg.sh and run '*chmod 755*' incase it doesn't have the 
permissions to execute. Then type:
*
*
*./appcfg.sh backends ~/pathToYourApp/AppFoldr/war/ update*

This will deploy your app to Google. It will ask for your email and 
password.

I left the parameter after update blank because I deploy the app with all my 
backends defined in my backends.xml.

You can alternatively use:
*./appcfg.sh backends ~/pathToYourApp/AppFoldr/war/ update spider*

This will target the 'sortgames' backend (as shown above)

I hope this helps!

Cheers!


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to