Skip to content
Browse files

Ignore everything in public/ unless instructed otherwise (to avoid tr…

…acking precompiled assets and cached pages).
  • Loading branch information...
1 parent 68fc8cf commit b9983c5ba19b2e799af7281b68ab382cfa9c0ece @mtarbit committed Jan 4, 2012
Showing with 13 additions and 12 deletions.
  1. +13 −12 .gitignore
View
25 .gitignore
@@ -5,25 +5,26 @@
# git config --global core.excludesfile ~/.gitignore_global
# Ignore bundler config
-/.bundle
+.bundle
# Ignore the default SQLite database.
-/db/*.sqlite3
+db/*.sqlite3
# Ignore all logfiles and tempfiles.
-/log/*.log
-/tmp
+log/*.log
+tmp
# Ignore yaml files since they're likely to contain sensitive
# information and I'm providing example templates instead.
*.yml
-# Pre-3.1 ignores. May need to re-instate some of these as we go?
-# _archive
-# db/backup
-# tmp/**/*
-# *.html
-# !public/404.html
-# !public/500.html
-# vendor/gems
+# Blacklist everything in the public directory to catch all pre-compiled
+# assets and cached pages. And then explicitly whitelist things we want.
+public/*
+!public/404.html
+!public/422.html
+!public/500.html
+!public/favicon.ico
+!public/files
+!public/robots.txt

0 comments on commit b9983c5

Please sign in to comment.
Something went wrong with that request. Please try again.