Victor Victor - 2 months ago 7
Git Question

What is a good .gitignore to use with Rails on Heroku?

What is a good .gitignore to use with Rails on Heroku?

*.log
*.sqlite3


what else?

Answer

This is pretty similar to: Rails: exclude anything from version control? Here is my answer from that.

DHH just posted on Twitter that there will be a default .gitignore in Rails 3, which includes:

db/*.sqlite3
log/*.log
tmp/**/*

This is usually what I exclude. Some people also like to exclude the database.yml file if it's going on a public repo and you don't want to expose your database passwords.