Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Rails app log rotation #78

Closed
mattboldt opened this issue Apr 18, 2017 · 10 comments
Closed

Rails app log rotation #78

mattboldt opened this issue Apr 18, 2017 · 10 comments

Comments

@mattboldt
Copy link

It'd be nice to include automatic log rotation for the /srv/www/<app name>/shared/log/ dir. Our servers filled up in disk space due to this.

I've got a busy week ahead of me, so I don't know if I can make a pull with this, but I can try.

@ajgon
Copy link
Owner

ajgon commented Apr 18, 2017

Shouldn't this be handled by another cookbook, i.e. logrotate or similar?

@mattboldt
Copy link
Author

Yeah, that's what I ended up using. But in the spirit of trying to replicate the old Chef 11 OpsWorks Rails setup, I'd expect it to also be included.

@ajgon ajgon closed this as completed in 883588f Apr 24, 2017
ajgon added a commit that referenced this issue Apr 24, 2017
Currently, frameworks (rails) and webservers (apache2 and nginx) are
supported.

Resolves #78
ajgon added a commit that referenced this issue Apr 24, 2017
Currently, frameworks (rails) and webservers (apache2 and nginx) are
supported.

Resolves #78
@mattboldt
Copy link
Author

Awesome! Thanks so much. Do you plan on pushing a new tag / release?

@ajgon
Copy link
Owner

ajgon commented Apr 25, 2017

Yes, probably on weekend

ajgon added a commit that referenced this issue Apr 25, 2017
Currently, frameworks (rails) and webservers (apache2 and nginx) are
supported.

Resolves #78
@bakongo
Copy link

bakongo commented Apr 25, 2017

Nice! This will come in useful.

ajgon added a commit that referenced this issue Apr 25, 2017
Currently, frameworks (rails) and webservers (apache2 and nginx) are
supported.

Resolves #78
@ajgon
Copy link
Owner

ajgon commented Apr 25, 2017

Released

@olbrich
Copy link
Contributor

olbrich commented May 9, 2017

Sorry I missed this one, but I think it's outside the scope of what this cookbook should be handling.
Are you going to add support for ntp when folks realize their clocks are drifting? Or swap_tuning when the instance runs out of memory?

@ajgon
Copy link
Owner

ajgon commented May 10, 2017

No, and no. But I see your point here. However, the logrotate was in fact in original Chef 11 recipes, and the main goal of this cookbook is to mimic the AWS version as closely as possible.

@andrewyoo
Copy link

@ajgon just wanted to start with thanks. I've been one of the users waiting around forever for ruby 2.4 support.

I've been testing this cookbook and it working well for me on my staging env. I did notice, that for this log rotate feature, it does not rotate all the logs in app/log but only the rails log file. I'm not very experienced in chef, but how could i get it to rotate all logs in app/log?

@andrewyoo
Copy link

@ajgon thanks for this fix

dotnofoolin pushed a commit to dotnofoolin/opsworks_ruby that referenced this issue Nov 23, 2021
Currently, frameworks (rails) and webservers (apache2 and nginx) are
supported.

Resolves ajgon#78
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants