# Best Practices for Disk Space Management in Community w/ lots of Images

**URL:** <https://meta.discourse.org/t/best-practices-for-disk-space-management-in-community-w-lots-of-images/74858>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [27.Ноябрь.2017 04:44:18 UTC](https://meta.discourse.org/t/best-practices-for-disk-space-management-in-community-w-lots-of-images/74858 "2017-11-27T04:44:18Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [27.Февраль.2020 01:04:44 UTC](https://meta.discourse.org/t/best-practices-for-disk-space-management-in-community-w-lots-of-images/74858/14 "2020-02-27T01:04:44Z")

</div>

Это не задача rake, но скрипт действительно доступен для тех, кто разворачивает решение самостоятельно. [https://github.com/discourse/discourse/blob/master/script/downsize\_uploads.rb](https://github.com/discourse/discourse/blob/master/script/downsize_uploads.rb)

Для использования выполните:

```plaintext
./launcher enter app
cd /var/www/discourse
RAILS_ENV=production bundle exec ruby script/downsize_uploads.rb

```

---

_[View the full topic](https://meta.discourse.org/t/best-practices-for-disk-space-management-in-community-w-lots-of-images/74858)._
