Skip to content

Commit

Permalink
Update log path
Browse files Browse the repository at this point in the history
  • Loading branch information
lewangdev committed Dec 21, 2021
1 parent 525c2b2 commit acd11ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ \

COPY paddlewebocr paddlewebocr

RUN python paddlewebocr/ocr.py
RUN python paddlewebocr/pkg/ocr.py

COPY --from=nodejsbuilder /app/dist webui/dist

Expand All @@ -33,4 +33,4 @@ EXPOSE 8080

VOLUME /app/logs

CMD ["python", "paddlewebocr/main.py"]
CMD ["uvicorn", "paddlewebocr.main:app", "--host", "0.0.0.0", "--port", "8080"]
2 changes: 1 addition & 1 deletion paddlewebocr/pkg/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Settings(BaseSettings):
PROJECT_NAME: str = "PaddleWebOCR"
CORS_ORIGINS: List[AnyHttpUrl] = []
DEBUG: bool = False
LOG_FILE: str = "log/info.log"
LOG_FILE: str = "logs/info.log"

class Config:
case_sensitive = True
Expand Down

0 comments on commit acd11ff

Please sign in to comment.