Application is too large

I just upgraded from 1.8.1 to 1.8.2 and now deployment of my app to Galaxy fails with

Error deploying application: Application is too large (maximum 367001600 bytes). Consider moving static assets to a separate static hosting

I already removed some static assets from public but so far no difference. How do I determine the actual size of the application to be deployed? Any other tips to make the app smaller?

My first todo would be to bundle the app myself to check its size.

Usual suspects for bloat I find are ofc static assets, node_modules and meteor packages. you can use e.g. this to get an estimate. Often we install deps just for a single purpose or function, which is convenient but adds bloat, so here is a chance for optimisation.

Well, I think it is 1.8.2 related. Just created two applications

meteor create --release 1.8.1 test181
meteor create --release 1.8.2 test182

and then built the tar balls

-rw-r--r--  1 jhm  wheel   6.6M Dec  1 07:51 /tmp/test181.tar.gz
-rw-r--r--  1 jhm  wheel    16M Dec  1 07:54 /tmp/test182.tar.gz

Will file a bug

1 Like

Even though the size difference posted is real, it was not the reason for my deployment problem. I was testing a package, and build bundled up the test app inside the package.