fixed some bugs with running the web app from docker
This commit is contained in:
@@ -3,7 +3,7 @@ from fastapi.responses import RedirectResponse
|
||||
|
||||
from tools.web_monitor.template import templates
|
||||
from tools.web_monitor.func import get_current_miner_list
|
||||
from tools.web_monitor.settings.func import get_current_settings, update_settings
|
||||
from tools.web_monitor._settings.func import get_current_settings, update_settings
|
||||
|
||||
|
||||
router = APIRouter()
|
||||
@@ -8,7 +8,7 @@ from fastapi.staticfiles import StaticFiles
|
||||
from tools.web_monitor.dashboard import router as dashboard_router
|
||||
from tools.web_monitor.miner import router as miner_router
|
||||
from tools.web_monitor.scan import router as scan_router
|
||||
from tools.web_monitor.settings import router as settings_router
|
||||
from tools.web_monitor._settings import router as settings_router
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import asyncio
|
||||
|
||||
from tools.web_monitor.miner_factory import miner_factory
|
||||
from tools.web_monitor.settings.func import get_current_settings
|
||||
from tools.web_monitor._settings.func import get_current_settings
|
||||
|
||||
|
||||
async def get_miner_data_dashboard(miner_ip):
|
||||
|
||||
@@ -5,7 +5,7 @@ import websockets.exceptions
|
||||
from fastapi import WebSocket, WebSocketDisconnect, APIRouter
|
||||
|
||||
from tools.web_monitor.func import get_current_miner_list
|
||||
from tools.web_monitor.settings.func import get_current_settings
|
||||
from tools.web_monitor._settings.func import get_current_settings
|
||||
from tools.web_monitor.dashboard.func import get_miner_data_dashboard
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import websockets.exceptions
|
||||
from fastapi import WebSocket, WebSocketDisconnect, APIRouter
|
||||
|
||||
from tools.web_monitor.miner_factory import miner_factory
|
||||
from tools.web_monitor.settings.func import get_current_settings
|
||||
from tools.web_monitor._settings.func import get_current_settings
|
||||
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
Reference in New Issue
Block a user