App is out of space!


#1

I have a nested node modules folder that is 153M (gets installed by enpeem).

I have main node modules folder that is 25M on top of that:

https://glitch.com/edit/#!/fancy-trouser?path=kennel/package.json:26:67

app@fancy-trouser:~/kennel/node_modules 18:36 
$ du -sh /app/node_modules
25M     /app/node_modules
app@fancy-trouser:~/kennel/node_modules 18:41 
$ du -sh /app/kennel/node_modules
153M    /app/kennel/node_modules

This not including the app code.

I need more space!


#2

Getting around this limitation for now by symlinking /app/kennel/node_modules to /tmp/node_modules.


#3

Projects have a limit of 128MB of space on the container (though as you’ve seen, things written to ‘/tmp’ don’t count towards that). If possible, you want to see if you can remove any dependencies, move static assets to the separate assets storage (which has a further 512MB) and clear out any old git objects from .git


#4

My app has no large static assets. It’s all code and NPM dependencies that’s taking up space. Think I would be fine with just a bit more space, another 25M would probably be enough with some headroom.


#5

Actually I see the limit is supposed to be 128M. I’m thinking I need 200M.


#6

Specifically in node_modules.