# Production.log not working after I deleted it

**URL:** <https://www.ruby-forum.com/t/production-log-not-working-after-i-deleted-it/120676>\
**Category:** Rails\
**Created:** [November 19, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/production-log-not-working-after-i-deleted-it/120676 "2007-11-19T18:43:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jko170](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jko170](https://www.ruby-forum.com/u/jko170)\
**Post date:** [November 19, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/production-log-not-working-after-i-deleted-it/120676/1 "2007-11-19T18:43:11Z")

</div>

My production.log was getting big, so I deleted on my server. And  
after running another cap deploy, the production.log file was  
regenerated but now the file is not being written to (it stays blank).  
How can I get my log file to work again? Thanks.

---

<div class="post-metadata">

**Author:** ![jko170](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jko170](https://www.ruby-forum.com/u/jko170)\
**Post date:** [November 19, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/production-log-not-working-after-i-deleted-it/120676/2 "2007-11-19T19:44:39Z")

</div>

jko170 wrote:

> My production.log was getting big, so I deleted on my server. And  
> after running another cap deploy, the production.log file was  
> regenerated but now the file is not being written to (it stays blank).  
> How can I get my log file to work again? Thanks.

Maybe you need to chmod the file, give it write permission 🙂

chmod 0777

---

<div class="post-metadata">

**Author:** ![jko170](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jko170](https://www.ruby-forum.com/u/jko170)\
**Post date:** [November 19, 2007, 7:50pm UTC](https://www.ruby-forum.com/t/production-log-not-working-after-i-deleted-it/120676/3 "2007-11-19T19:50:38Z")

</div>

Ah, there we go. Thanks a lot!
