.gitignore for Node + Rails + Ruby

Quick presets

Selected (3)
NodeRailsRuby
Your selections never leave your browser. Generation happens entirely client-side.
Raw

57 patterns · 986 B

# Generated by DevZone Tools — https://devzone.tools/tools/gitignore-generator
# Templates: Node, Ruby, Rails
# 2026-04-20

# ---- Node ----
# Node
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.pnpm-debug.log*
.npm
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
lerna-debug.log*
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
dist/
build/
.cache/
*.tsbuildinfo

# ---- Ruby ----
# Ruby
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/
.dat*
.repl_history
build/bundled_gems
Gemfile.lock
.ruby-version
.ruby-gemset
.rvmrc
.byebug_history

# ---- Rails ----
# Rails
/log/*
!/log/.keep
/storage/*
!/storage/.keep
/public/assets
/public/packs
/public/packs-test
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-shm
/db/*.sqlite3-wal
config/master.key
config/credentials/*.key
/config/database.yml
.env*
!.env.example