Skip to content

Commit f7d29f8

Browse files
author
yjy
committed
update start_api
1 parent 3dd8e2e commit f7d29f8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ ENV PYTHONPATH=/app/src
3232
EXPOSE 8000
3333

3434
# Start the docker
35-
CMD ["uvicorn", "memos.api.start_api:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
35+
CMD ["uvicorn", "memos.api.product_api:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]

src/memos/api/start_api.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,6 @@ async def global_exception_handler(request: Request, exc: Exception):
425425
if __name__ == "__main__":
426426
import argparse
427427

428-
import uvicorn
429-
430428
parser = argparse.ArgumentParser()
431429
parser.add_argument("--port", type=int, default=8000, help="Port to run the server on")
432430
parser.add_argument("--host", type=str, default="0.0.0.0", help="Host to run the server on")

0 commit comments

Comments
 (0)