I’ve noticed when using Warbler to build WAR files for Merb
applications, that a tmp directory gets created in the WEB-INF directory
which contains all of the gems (again - they are already in
WEB-INF/gems) and ends up in the WAR file. This basically adds the total
amount of space required for the gems to the WAR (minimum 2 - 3 MB).
In the tutorial for setting up Merb in a JEE container
I added the following:
"In warbler 0.9.10, the entire “tmp” directory is placed underneath the
MERB_ROOT/tmp/war directory and then zipped into the WAR file. To remove
this unnecessary stuff, after you do “warble”, do the following:
- cd tmp/war
- rm -rf tmp
- jar cvf …/…/name of your war file.war * This will regenerate the WAR
file and it will be at least 2-3 MB smaller than the original."
Not sure why the tmp dir goes in there with all of the gems, but it is
unnecessary as far as I can tell. I’ve done these steps several times
and my Merb. app works fine.
Note that this does not appear to occur for Rails apps.
To unsubscribe from this list, please visit: