chore: 添加 .gitignore 并移除敏感/缓存文件
- 添加 .gitignore (Python __pycache__, .env, .idea, node_modules 等) - 从追踪中移除 backend/.env, frontend/.env (密钥文件) - 从追踪中移除 __pycache__/ 目录 (编译缓存) - 从追踪中移除 .idea/ (IDE 配置)
This commit is contained in:
40
.gitignore
vendored
Normal file
40
.gitignore
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# ===== Python =====
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*$py.class
|
||||||
|
*.so
|
||||||
|
*.egg-info/
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
*.egg
|
||||||
|
.eggs/
|
||||||
|
venv/
|
||||||
|
.venv/
|
||||||
|
env/
|
||||||
|
|
||||||
|
# ===== 环境变量(含密钥) =====
|
||||||
|
.env
|
||||||
|
*.env.local
|
||||||
|
|
||||||
|
# ===== IDE =====
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*~
|
||||||
|
|
||||||
|
# ===== OS =====
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# ===== Node / Frontend =====
|
||||||
|
node_modules/
|
||||||
|
frontend/dist/
|
||||||
|
frontend/src-tauri/target/
|
||||||
|
|
||||||
|
# ===== Docker =====
|
||||||
|
docker-compose.override.yml
|
||||||
|
|
||||||
|
# ===== Misc =====
|
||||||
|
*.log
|
||||||
|
*.tmp
|
||||||
8
.idea/.gitignore
generated
vendored
8
.idea/.gitignore
generated
vendored
@ -1,8 +0,0 @@
|
|||||||
# 默认忽略的文件
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
||||||
# 基于编辑器的 HTTP 客户端请求
|
|
||||||
/httpRequests/
|
|
||||||
# Datasource local storage ignored files
|
|
||||||
/dataSources/
|
|
||||||
/dataSources.local.xml
|
|
||||||
13
backend/.env
13
backend/.env
@ -1,13 +0,0 @@
|
|||||||
# ============================================================
|
|
||||||
# 生产流转管理系统 — 后端环境变量
|
|
||||||
# 测试环境局域网 IP: 192.168.9.80
|
|
||||||
# 数据库: PostgreSQL 15 + pgvector (独立容器, 端口 5433)
|
|
||||||
# ============================================================
|
|
||||||
|
|
||||||
DATABASE_URL=postgresql+asyncpg://track:track_prod_2026@localhost:5433/track_production
|
|
||||||
SECRET_KEY=change-me-to-a-random-secret-key-in-production
|
|
||||||
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
|
||||||
DEBUG=true
|
|
||||||
|
|
||||||
# 跨域白名单(JSON 数组格式,供 pydantic 解析)
|
|
||||||
CORS_ORIGINS='["http://localhost:1420", "tauri://localhost", "http://192.168.9.80:1420", "http://192.168.9.80"]'
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
VITE_API_BASE_URL=http://192.168.9.80:8000
|
|
||||||
Reference in New Issue
Block a user