# Empêcher /shared/log/rails/production.log

**URL:** <https://meta.discourse.org/t/prevent-shared-log-rails-production-log/293637>\
**Category:** Self-hosting\
**Created:** [Janvier 31, 2024, 2:25 UTC](https://meta.discourse.org/t/prevent-shared-log-rails-production-log/293637 "2024-01-31T14:25:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [Janvier 31, 2024, 2:45 UTC](https://meta.discourse.org/t/prevent-shared-log-rails-production-log/293637/3 "2024-01-31T14:45:50Z")

</div>

Vous pouvez consulter `templates/web.template.yml` pour voir comment les journaux sont tronqués, et peut-être à partir de là obtenir un indice sur la façon de configurer NGINX pour ne pas conserver les journaux (voir [https://serverfault.com/questions/318574/how-to-disable-nginx-logging](https://serverfault.com/questions/318574/how-to-disable-nginx-logging) pour un exemple de ce dont NGINX a besoin).

Vous pourriez soit créer un autre modèle pour cela, soit insérer quelques lignes dans votre `app.yml` pour faire la même chose.

---

_[View the full topic](https://meta.discourse.org/t/prevent-shared-log-rails-production-log/293637)._
