fix
This commit is contained in:
@@ -8,6 +8,6 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
COPY backend ./backend
|
COPY backend ./backend
|
||||||
COPY frontend ./frontend
|
COPY frontend ./frontend
|
||||||
|
|
||||||
WORKDIR /app/backend
|
WORKDIR /app
|
||||||
|
|
||||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"]
|
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8001"]
|
||||||
|
|||||||
0
backend/__init__.py
Normal file
0
backend/__init__.py
Normal file
@@ -26,8 +26,11 @@ app.include_router(users.router)
|
|||||||
app.include_router(apps.router)
|
app.include_router(apps.router)
|
||||||
app.include_router(sso.router)
|
app.include_router(sso.router)
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
# Mount static files (Frontend)
|
# Mount static files (Frontend)
|
||||||
app.mount("/", StaticFiles(directory="../frontend", html=True), name="static")
|
static_dir = os.path.join(os.path.dirname(os.path.dirname(__file__)), "frontend")
|
||||||
|
app.mount("/", StaticFiles(directory=static_dir, html=True), name="static")
|
||||||
|
|
||||||
# Create initial admin user if not exists
|
# Create initial admin user if not exists
|
||||||
def create_initial_admin():
|
def create_initial_admin():
|
||||||
|
|||||||
0
backend/routers/__init__.py
Normal file
0
backend/routers/__init__.py
Normal file
0
backend/services/__init__.py
Normal file
0
backend/services/__init__.py
Normal file
Reference in New Issue
Block a user