Files
ai-image/.gitignore
T
Jack 53b2123ae9 chore: move generated images and database outside the git worktree
The output/ and data/ directories lived inside this git repo. They are
gitignored, so any rebuild of the directory (git clone into a recreated
path, rm + clone) silently took the generated images and the SQLite
database with it. On 2026-11-04 that cost a full round of regenerated
images.

The real data now lives in /root/apps/ai-image-data/:
  output/  generated images, one subdirectory per profile_name
  data/    ai_image.db + secret.key

Bind mounts use absolute paths so the container never depends on symlink
resolution. ./output and ./data remain as symlinks for backwards
compatibility with existing scripts and skills.

Also ignore the symlinks themselves: the directory-form rules do not
match them, so git would have picked them up.
2026-11-04 23:48:01 +08:00

52 lines
751 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Environment and secrets
.env
.env.*
!.env.example
# Local runtime data (SQLite + 加密密钥)
# 2026-11-04 起真身已迁到 /root/apps/ai-image-data/(git 工作树外)。
# 这里的 data/ output/ 只保留为指向新位置的符号链接(方便老路径继续用)。
data/
output/
# 符号链接本身也别提交(目录形式的规则匹配不到 symlink)
/data
/output
.screenshots/
.trae-html-share-packages/
# Test scratch
test/
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
.pytest_cache/
.mypy_cache/
.ruff_cache/
.coverage
htmlcov/
# Virtual environments
.venv/
venv/
env/
# Packaging
build/
dist/
*.egg-info/
# IDE and OS
.vscode/
.idea/
*.iml
.DS_Store
Thumbs.db
# Logs and local databases
*.log
*.sqlite3