framework38개 활성 규칙2026-09-30 검증 완료
Ruby on Rails .gitignore 템플릿
Rails log files, temporary storage (/tmp), asset caches, and credentials. GitHub 공식 리포지토리 패턴과 결정론적으로 병합되어 의존성 폴더, 빌드 결과물, 로컬 환경 변수 파일로부터 저장소를 깨끗하게 지켜줍니다.
인터랙티브 스택 생성기
전체 생성기에서 열기/
Search for templates
빠른 추가:
선택됨1
Ruby on Rails
선택된 템플릿 (1)
Ruby on Rails
framework
Rails log files, temporary storage (/tmp), asset caches, and credentials
#rails#ror
.gitignore
38개 규칙•1 템플릿
### Ruby on Rails ###*.rbccapybara-*.html.rspec/db/*.sqlite3/db/*.sqlite3-journal/db/*.sqlite3-[0-9]*/public/system/coverage//spec/tmp*.origrerun.txtpickle-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 repoconfig/initializers/secret_token.rbconfig/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*.bowerrcbower.json # Ignore pow environment settings.powenv # Ignore Byebug command history file..byebug_history # Ignore node_modulesnode_modules/ # Ignore precompiled javascript packs/public/packs/public/packs-test/public/assets # Ignore yarn files/yarn-error.logyarn-debug.log*.yarn-integrity # Ignore uploaded files in development/storage/*!/storage/.keep/public/uploads 71줄•UTF-8•LF
결정론적 파이프라인
Ruby on Rails .gitignore 원본 소스
크롤링 가능한 공식 업스트림 원본 템플릿rails.gitignore•70 lines•UTF-8
*.rbccapybara-*.html.rspec/db/*.sqlite3/db/*.sqlite3-journal/db/*.sqlite3-[0-9]*/public/system/coverage//spec/tmp*.origrerun.txtpickle-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 repoconfig/initializers/secret_token.rbconfig/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*.bowerrcbower.json # Ignore pow environment settings.powenv # Ignore Byebug command history file..byebug_history # Ignore node_modulesnode_modules/ # Ignore precompiled javascript packs/public/packs/public/packs-test/public/assets # Ignore yarn files/yarn-error.logyarn-debug.log*.yarn-integrity # Ignore uploaded files in development/storage/*!/storage/.keep/public/uploads 주요 제외 패턴 해설
의존성 및 패키지 폴더
패키지 매니저를 통해 언제든 복원 가능한 외부 라이브러리 및 벤더 디렉터리를 제외합니다.
/vendor/bundle/vendor/assets/bower_componentsnode_modules/
빌드 및 컴파일 산출물
컴파일 과정에서 생성되는 바이나리, 중간 오브젝트 파일, 출력 결과물 폴더를 제외합니다.
*.orig
환경 변수 및 보안 키
API 키, 데이터베이스 비밀번호, 로컬 환경 변수(.env) 등 민감한 정보의 유출을 방지합니다.
config/initializers/secret_token.rb.env.env*.local
캐시 및 임시 작업 파일
컴파일러 캐시, 테스트 커버리지 보고서, 임시 작업 스크래치 파일을 제외하여 저장소를 가볍게 유지합니다.
/coverage//spec/tmp/tmp/*!/tmp/.keep/yarn-error.logyarn-debug.log*
출처 및 라이선스 검증
라이선스:: CC0-1.0
이 파일을 프로젝트 루트 디렉터리에 .gitignore라는 이름으로 저장하세요. 새로 추가되거나 아직 추적되지 않은 파일에 즉시 적용됩니다.