Skip to content

Instantly share code, notes, and snippets.

@cupnoodle
Last active August 29, 2015 14:13
Show Gist options
  • Save cupnoodle/291a4fcdbd9f2088fb57 to your computer and use it in GitHub Desktop.
Save cupnoodle/291a4fcdbd9f2088fb57 to your computer and use it in GitHub Desktop.
Rails gitignore file
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
*.rbc
capybara-*.html
.rspec
/log
/tmp
/db/*.sqlite3
/db/*.sqlite3-journal
/public/system
/coverage/
/spec/tmp
**.orig
rerun.txt
pickle-email-*.html
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/secrets.yml
config/database.yml
config/local_env.yml
## Environment normalisation:
/.bundle
/vendor/bundle
# these should all be checked in to normalise the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc
bower.json
#Ignore pow enironment settings
.powenv
#Ignore pem certificate
*.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment