Existe um guia para mover /uploads para um novo disco rígido anexado?

I have about 20gb of space left and rather than upgrading my AWS Lightsail instance to the next level up I would rather just add an attached drive. I have done this and mounted it but I am unsure of what I need to do for Discourse to use it for either future uploads (hey wouldn’t that be nice) or move the entire folder over to the new drive and have it access it there.

Any pointers would be appreciated.

1 curtida

In broad strokes, you can rsync /var/discourse/shared/standalone/uploads to the new drive and then add another line in the app.yml to direct /shared/uploads to the new path.

1 curtida

Thanks Jay, very helpful! What syntax should one use in app.yml to achieve that?

1 curtida

Well, the same syntax that they use to have /var/discourse/shared/standalone map to /shared.

But I think you want a bit more than the syntax. I think you’re more interested in the astral semantics, and I can’t remember exactly all the pieces, especially on my phone.

1 curtida