fix(reflex): create app.py in root and update app_name | ApprovalToken: 1767140757
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

- Create app.py in root directory to export app for Reflex
- Change app_name from 'src' to 'peikarband' to match root directory
- Fix relative import in src/__init__.py
- Fixes ModuleNotFoundError: Module src.src not found
This commit is contained in:
Ehsan.Asadi
2025-12-31 03:55:57 +03:30
parent 12aba3df78
commit e795687d04
3 changed files with 13 additions and 3 deletions

10
peikarband/app.py Normal file
View File

@@ -0,0 +1,10 @@
"""Peikarband Landing Application Entry Point.
This file exports the Reflex app instance for the landing page.
Reflex will look for 'app' in the root module when app_name matches the root directory.
"""
from src.presentation.web.pages.landing.index import app
__all__ = ["app"]

View File

@@ -13,7 +13,7 @@ BACKEND_PORT = int(os.getenv("BACKEND_PORT", "8000"))
DB_URL = os.getenv("DATABASE_URL", "sqlite:////app/data/reflex.db")
config = rx.Config(
app_name="src",
app_name="peikarband",
api_url=API_URL,
frontend_port=FRONTEND_PORT,
backend_port=BACKEND_PORT,

View File

@@ -3,8 +3,8 @@
This module exports the Reflex app instance for the landing page.
"""
# Import the app from the landing page module
from src.presentation.web.pages.landing.index import app
# Import the app from the landing page module using relative import
from .presentation.web.pages.landing.index import app
__all__ = ["app"]