]> source.dussan.org Git - gitignore.git/commitdiff
Don't ignore tmp and log directory (#2999)
authorOKURA Masafumi <masafumi.o1988@gmail.com>
Thu, 14 Mar 2019 12:55:38 +0000 (21:55 +0900)
committerBrendan Forster <brendan@github.com>
Thu, 14 Mar 2019 12:55:38 +0000 (09:55 -0300)
https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
Rails `5.2.2.1` requires `tmp` directory committed to git repository for CI to run successfully.

Rails.gitignore

index 38ba1b5b38c5956115309adc6b4097c511072ac6..cec0a75d1bb6de72cab0e43330015ebb9ea3959d 100644 (file)
@@ -1,8 +1,6 @@
 *.rbc
 capybara-*.html
 .rspec
-/log
-/tmp
 /db/*.sqlite3
 /db/*.sqlite3-journal
 /public/system
@@ -12,6 +10,12 @@ capybara-*.html
 rerun.txt
 pickle-email-*.html
 
+# Ignore all logfiles and tempfiles.
+/log/*
+/tmp/*
+!/log/.keep
+!/tmp/.keep
+
 # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
 config/initializers/secret_token.rb
 config/master.key
@@ -59,4 +63,4 @@ yarn-debug.log*
 
 # Ignore uploaded files in development
 /storage/*
-!/storage/.keep
\ No newline at end of file
+!/storage/.keep