diff --git a/main.py b/main.py index b1127d4..61397d1 100755 --- a/main.py +++ b/main.py @@ -37,7 +37,7 @@ async def create_upload_file(file: UploadFile = File(...)): copyfileobj(file.file, buffer) # 执行外部程序 - command = [ + command = [ # coderdbc -dbc ./DMK-RP-77A.dbc -out ./gen -drvname CANmatrix -nodeutils -rw -driverdir -gendate os.path.join(folder_path, "coderdbc"), "-dbc", file_location, "-out", os.path.join(folder_path, "gen"), diff --git a/note.txt b/note.txt index fd87c1c..ce7ebd9 100755 --- a/note.txt +++ b/note.txt @@ -1,5 +1,8 @@ 1.进入虚拟环境 source .venv/bin/activate + +安装fastapi + 2.运行fastapi uvicorn main:app --reload --host 0.0.0.0 --port 8000