aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-11-21 09:25:22 +0100
committerYves Senn <yves.senn@gmail.com>2014-11-21 09:26:58 +0100
commit8ffc8da71360f0defcc4ac44d25c1732b3f73820 (patch)
treee3c8a35660b84a5a825949e29d61ceee2af20f2d /railties/lib/rails
parent36fe7f3bed8fa6fd19156a90633a42e4e2d10cfa (diff)
downloadrails-8ffc8da71360f0defcc4ac44d25c1732b3f73820.tar.gz
rails-8ffc8da71360f0defcc4ac44d25c1732b3f73820.tar.bz2
rails-8ffc8da71360f0defcc4ac44d25c1732b3f73820.zip
ignore all logfiles but keep the log directory. #17700 [ci skip]
We generate a `.keep` file inside the log directory to make sure the directory itself is under version control. let's keep it that way. /cc @matthewd
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/gitignore3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/gitignore b/railties/lib/rails/generators/rails/app/templates/gitignore
index ee61b7c5a8..7c6f2098b8 100644
--- a/railties/lib/rails/generators/rails/app/templates/gitignore
+++ b/railties/lib/rails/generators/rails/app/templates/gitignore
@@ -14,5 +14,6 @@
<% end -%>
# Ignore all logfiles and tempfiles.
-/log
+/log/*
+!/log/.keep
/tmp