Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails: exclude anything from version control?

When you place a Rails project under version control, do you exclude anything? Log files, for example?

like image 241
Nathan Long Avatar asked Dec 29 '22 07:12

Nathan Long


1 Answers

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

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

Which 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.

like image 162
Dan McNevin Avatar answered Jan 05 '23 18:01

Dan McNevin