fix(reflex): create app.py in root and update app_name | ApprovalToken: 1767140757
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
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:
10
peikarband/app.py
Normal file
10
peikarband/app.py
Normal 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"]
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ BACKEND_PORT = int(os.getenv("BACKEND_PORT", "8000"))
|
|||||||
DB_URL = os.getenv("DATABASE_URL", "sqlite:////app/data/reflex.db")
|
DB_URL = os.getenv("DATABASE_URL", "sqlite:////app/data/reflex.db")
|
||||||
|
|
||||||
config = rx.Config(
|
config = rx.Config(
|
||||||
app_name="src",
|
app_name="peikarband",
|
||||||
api_url=API_URL,
|
api_url=API_URL,
|
||||||
frontend_port=FRONTEND_PORT,
|
frontend_port=FRONTEND_PORT,
|
||||||
backend_port=BACKEND_PORT,
|
backend_port=BACKEND_PORT,
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
This module exports the Reflex app instance for the landing page.
|
This module exports the Reflex app instance for the landing page.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Import the app from the landing page module
|
# Import the app from the landing page module using relative import
|
||||||
from src.presentation.web.pages.landing.index import app
|
from .presentation.web.pages.landing.index import app
|
||||||
|
|
||||||
__all__ = ["app"]
|
__all__ = ["app"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user