Skip to content
framework38 reglas activasVerificado el 2026-09-30

Ruby on Rails Plantilla .gitignore

Rails log files, temporary storage (/tmp), asset caches, and credentials. Generada y fusionada de manera determinista con los patrones del repositorio oficial de GitHub para mantener tu proyecto libre de carpetas de dependencias, artefactos de build y archivos de entorno local.

Generador interactivo de stack

Abrir en el generador completo
Search for templates
Añadir rápido:
Seleccionadas1
Ruby on Rails
Plantillas seleccionadas (1)
.gitignore
38 reglas
### Ruby on Rails ###
*.rbc
capybara-*.html
.rspec
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-[0-9]*
/public/system
/coverage/
/spec/tmp
*.orig
rerun.txt
pickle-email-*.html
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/master.key
# Only include if you have production secrets in this file, which is no longer a Rails default
# config/secrets.yml
# dotenv, dotenv-rails
# TODO Comment out these rules if environment variables can be committed
.env
.env*.local
## Environment normalization:
/.bundle
/vendor/bundle
# these should all be checked in to normalize 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 environment settings
.powenv
# Ignore Byebug command history file.
.byebug_history
# Ignore node_modules
node_modules/
# Ignore precompiled javascript packs
/public/packs
/public/packs-test
/public/assets
# Ignore yarn files
/yarn-error.log
yarn-debug.log*
.yarn-integrity
# Ignore uploaded files in development
/storage/*
!/storage/.keep
/public/uploads
71 líneas•UTF-8
Pipeline Determinista

Código original de Ruby on Rails .gitignore

Plantilla fuente oficial rastreable
rails.gitignore•70 lines•UTF-8
*.rbc
capybara-*.html
.rspec
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-[0-9]*
/public/system
/coverage/
/spec/tmp
*.orig
rerun.txt
pickle-email-*.html
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/master.key
# Only include if you have production secrets in this file, which is no longer a Rails default
# config/secrets.yml
# dotenv, dotenv-rails
# TODO Comment out these rules if environment variables can be committed
.env
.env*.local
## Environment normalization:
/.bundle
/vendor/bundle
# these should all be checked in to normalize 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 environment settings
.powenv
# Ignore Byebug command history file.
.byebug_history
# Ignore node_modules
node_modules/
# Ignore precompiled javascript packs
/public/packs
/public/packs-test
/public/assets
# Ignore yarn files
/yarn-error.log
yarn-debug.log*
.yarn-integrity
# Ignore uploaded files in development
/storage/*
!/storage/.keep
/public/uploads

Desglose de patrones clave

Dependencias y paquetes

Excluye carpetas de paquetes instalados y dependencias de terceros que deben restaurarse con gestores de paquetes.

/vendor/bundle/vendor/assets/bower_componentsnode_modules/

Artefactos de compilación

Ignora binarios generados, archivos de objetos intermedios y directorios de salida creados durante la compilación.

*.orig

Variables de entorno y secretos

Evita la exposición accidental de claves de API, contraseñas de bases de datos y archivos de configuración local.

config/initializers/secret_token.rb.env.env*.local

Caché y archivos temporales

Ignora cachés de compiladores, datos de cobertura de pruebas y archivos de trabajo efímeros.

/coverage//spec/tmp/tmp/*!/tmp/.keep/yarn-error.logyarn-debug.log*

Origen y verificación

Licencia:: CC0-1.0

Coloca este archivo en el directorio raíz de tu proyecto como .gitignore. Los cambios surtirán efecto en archivos nuevos o no rastreados.