Berth

Persistent storage

Containers start clean on every deploy. For uploads, generated files or caches, mount a folder that sticks around:

berth storage:mount myapp /uploads
berth storage:list myapp
berth storage:unmount myapp /uploads    # stops mounting it; the files stay

The folder is ~/.berth/data/apps/myapp/uploads/ on the Mac: a plain folder that Time Machine and berth backup both pick up.

Don't keep a SQLite database in one of these; use berth sqlite:add. A database in a shared folder can be corrupted when two containers write at once, which happens on every deploy.

Edit this page on GitHub (it's a section of the README)