From 7b346b9e25c51723e33117cd6f4d0a4a795d1fd7 Mon Sep 17 00:00:00 2001 From: arkohut <39525455+arkohut@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:18:40 +0800 Subject: [PATCH] fix: import run server in serve command --- memos/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memos/commands.py b/memos/commands.py index e87b694..5777f95 100644 --- a/memos/commands.py +++ b/memos/commands.py @@ -7,7 +7,6 @@ from typing import List, Tuple import httpx import typer -from .server import run_server from .read_metadata import read_metadata from .schemas import MetadataSource from tabulate import tabulate @@ -90,6 +89,7 @@ def serve(): db_success = init_database() ts_success = init_typesense() if db_success and ts_success: + from .server import run_server run_server() else: print("Server initialization failed. Unable to start the server.")