This commit is contained in:
BaoXuebin 2023-04-10 01:27:41 +08:00
parent b427d649b6
commit a36aed000b
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ENV PATH "/app/bin:$PATH"
RUN python3 -mvenv /app
RUN wget https://github.com/beancount/beancount/archive/refs/tags/2.3.5.tar.gz
RUN tar -zxvf 2.3.5.tar.gz
RUN python3 -m pip install ./beancount-2.3.5 -i https://mirrors.aliyun.com/pypi/simple/
RUN python3 -m pip install ./beancount-2.3.5
RUN find /app -name __pycache__ -exec rm -rf -v {} +
# 构建 beancount-gs

View File

@ -129,7 +129,7 @@ func main() {
// gin 日志设置
gin.DisableConsoleColor()
fs, _ := os.Create("logs/gin.log")
gin.DefaultWriter = io.MultiWriter(fs)
gin.DefaultWriter = io.MultiWriter(fs, os.Stdout)
router := gin.Default()
// 注册路由
RegisterRouter(router)