feat: consolidate env config and add deployment files

- Add debug_font_path, demo_docs_dir, e2e_api_base_url to config.py
- Fix hardcoded paths in pp_structure_debug.py, create_demo_images.py
- Fix hardcoded paths in test files
- Update .env.example with new configuration options
- Update .gitignore to exclude AI development files (.claude/, openspec/, AGENTS.md, CLAUDE.md)
- Add production startup script (start-prod.sh)
- Add README.md with project documentation
- Add 1panel Docker deployment files (docker-compose.yml, Dockerfiles, nginx.conf)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
egg
2025-12-14 15:02:16 +08:00
parent 858d93155f
commit 86a6633000
31 changed files with 1177 additions and 252 deletions

View File

@@ -3,12 +3,15 @@
Test translation service with DIFY API using real OCR results from storage/results/
"""
import json
import os
import pytest
from pathlib import Path
from app.services.dify_client import DifyClient, get_dify_client
from app.services.translation_service import TranslationService, get_translation_service
pytestmark = pytest.mark.integration
# Real task IDs with their result files
REAL_TASKS = [
("ca2b59a3-3362-4678-954f-cf0a9bcc152e", "img3_result.json"),
@@ -28,6 +31,8 @@ RESULTS_DIR = Path(__file__).parent.parent / "storage" / "results"
@pytest.fixture
def dify_client():
"""Get DIFY client instance"""
if not os.getenv("DIFY_API_KEY"):
pytest.skip("Set DIFY_API_KEY to run real translation integration tests")
return get_dify_client()