Stop tracking .env files so secrets are never pushed.

Co-authored-by: Cursor <cursoragent@cursor.com>
pull/26/head
ahmed.mujtaba 2026-08-24 21:25:23 +05:00
parent fb27ec3bb3
commit 0a6dd688fb
1 changed files with 5 additions and 6 deletions

11
.gitignore vendored
View File

@ -34,13 +34,13 @@ __pycache__/
venv/ venv/
env/ env/
# Environment / secrets — app secrets only in backend/.env (never commit it). # Environment / secrets — NEVER commit real .env files
# Root .env is a Compose pointer (COMPOSE_ENV_FILES) with no secrets; keep it. .env
backend/.env **/.env
.env.* .env.*
!.env **/.env.*
!.env.example !.env.example
!backend/.env.example !**/.env.example
!frontend/.env.development !frontend/.env.development
!frontend/.env.production !frontend/.env.production
@ -66,4 +66,3 @@ Utopia-ai-hr-ats-portal 1.pem
# Local-only Compose overrides (never deployed) # Local-only Compose overrides (never deployed)
docker.local.env docker.local.env
tests/** tests/**
**/.env**