Skip to content

Instantly share code, notes, and snippets.

@mokolabs
Created November 16, 2010 04:27
Show Gist options
  • Save mokolabs/701419 to your computer and use it in GitHub Desktop.
Save mokolabs/701419 to your computer and use it in GitHub Desktop.
Add this initializer to auto-delete your development log
# 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