Created
November 16, 2010 04:27
-
-
Save mokolabs/701419 to your computer and use it in GitHub Desktop.
Add this initializer to auto-delete your development log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clear logs when booting server locally | |
# so they don't grow to be 1GB in size | |
if RAILS_ENV == 'development' | |
f = File.open("#{RAILS_ROOT}/log/development.log", "w") | |
f.close | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment