Skip to content

Old deploys take up way heaps of space #899

@dacook

Description

@dacook

Description

We store the last 5 deploys on a server in the releases-old folder, but this can take up lots of space. (note that the current release is also in this directory).

The majority of the space used is from node_modules, currently 260mb (therefore 1.3gb used).
Logs also take up a bit.

Expected Behavior

There shouldn't be too much space used up

Actual Behaviour

# au-prod
du -sh apps/openfoodnetwork/releases-old
5.5G	apps/openfoodnetwork/releases-old

Jul 2024: 6.3 GiB

Severity

Possible Fix

Perhaps node_modules could be linked to a single shared folder (I think assets might be set up like this?).

But I think we can simply just store less old releases. I don't think we ever really refer to them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    All the things 💤

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions