fix: resolve static files and import issues

- Fix static files not loading due to volume mount conflict
- Remove problematic volume mount from docker-compose.yml
- Add __init__.py files to make Python packages
- Fix all import statements to use relative imports
- Update start.sh to use correct module name
- Update config.py with correct default paths and values
- Ensure all environment variables are properly loaded from .env file
This commit is contained in:
2025-08-20 18:14:35 +03:00
parent 12dcc69de8
commit b49b543d72
20 changed files with 76 additions and 31 deletions
+3 -3
View File
@@ -11,9 +11,9 @@ from fastapi import FastAPI, Request, HTTPException
from fastapi.staticfiles import StaticFiles
from fastapi.templating import Jinja2Templates
from app.core.config import DEBUG_MODE, SNAP_DIR, STATIC_DIR, APP_PORT
from app.api.v1.router import api_router, pages_router
from app.core.logger import app_logger
from core.config import DEBUG_MODE, SNAP_DIR, STATIC_DIR, APP_PORT
from api.v1.router import api_router, pages_router
from core.logger import app_logger
# Инициализация FastAPI
app = FastAPI(