I have a problem with my production.log file in Rais 4.
I have deleted the file after a Capistrano deploy, i created the file again but know is always 0kb. What can i do?
Thanks.
I was able to fix it by restarting nginx and my app's unicorn instance:
$ sudo service nginx restart
$ sudo service unicorn_appname restart
If that doesn't work try stop and start instead of restart. You also need to make sure that the app has permissions to write to the file. touch the file as the user your app uses to run in the server.
Or:
$ chown username production.log
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With