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:
@@ -21,8 +21,9 @@ def ocr_service():
|
||||
@pytest.fixture
|
||||
def sample_image():
|
||||
"""Find a sample image for testing"""
|
||||
# Try to find any image in demo_docs
|
||||
demo_dir = Path('/home/egg/project/Tool_OCR/demo_docs')
|
||||
# Try to find any image in demo_docs (using settings for path)
|
||||
from app.core.config import settings
|
||||
demo_dir = Path(settings.demo_docs_dir)
|
||||
if demo_dir.exists():
|
||||
for ext in ['.pdf', '.png', '.jpg', '.jpeg']:
|
||||
images = list(demo_dir.glob(f'*{ext}'))
|
||||
|
||||
Reference in New Issue
Block a user