Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload .war file to Google app engine (GAE) using appcfg

Out of curiosity, Is it possible to upload single .war file generated by maven to Google app engine using the tool appcfg.(/cmd/sh)?

I tried but got errors, when I specify the exploded directory (directory that contains gwt files) as the path, it worked.

Would be nice to specify single archive (.war) for upload as path to appcfg tool.

Please let me know if you have been able to do this or whether it's even supported.

Cheers PB

like image 785
Babajide Prince Avatar asked Nov 13 '22 06:11

Babajide Prince


1 Answers

The Google App Engine makes no provision for uploading a single .war file.

Since a war/ folder necessarily precedes the creation of a .war archive (since a .war archive is simply a zipped up war/ directory) obtaining the war/directory is provably easier than obtaining a .war file.

Perhaps you are used to tomcat where you can just deploy a .war file through the admin interface. When tomcat receives that file, all it does is extract it under webapps/. I suspect that GAE fiddles with the contents of your war/ a bit before it is actually uploaded to them anyway. If you provide more information about why you want to do this, perhaps we can discover the source of your confusion.

like image 81
Travis Webb Avatar answered Dec 29 '22 03:12

Travis Webb