作者 yangfu

log/opp 打印日志

@@ -21,7 +21,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories @@ -21,7 +21,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
21 RUN apk add --no-cache tzdata \ 21 RUN apk add --no-cache tzdata \
22 && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ 22 && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
23 && echo "Asia/Shanghai" > /etc/timezone \ 23 && echo "Asia/Shanghai" > /etc/timezone \
24 - && rm -rf /var/cache/apk/* /tmp/* /var/tmp/* $HOME/.cache ## 清除缓存 24 +# && rm -rf /var/cache/apk/* /tmp/* /var/tmp/* $HOME/.cache ## 清除缓存
25 WORKDIR /root/ 25 WORKDIR /root/
26 COPY --from=builder /go/src/opp . 26 COPY --from=builder /go/src/opp .
27 EXPOSE 8080 27 EXPOSE 8080
@@ -60,7 +60,6 @@ func init() { @@ -60,7 +60,6 @@ func init() {
60 //im.InitImClient(beego.AppConfig.String("net_im_base_url"), beego.AppConfig.String("net_im_app_key"), beego.AppConfig.String("net_im_app_secret")) 60 //im.InitImClient(beego.AppConfig.String("net_im_base_url"), beego.AppConfig.String("net_im_app_key"), beego.AppConfig.String("net_im_app_secret"))
61 websocket.InitWebsocketConnmgrs(10) 61 websocket.InitWebsocketConnmgrs(10)
62 62
63 - log.Info(fmt.Sprintf("env MYSQL_HOST:%v", os.Getenv("MYSQL_HOST")))  
64 log.Info(fmt.Sprintf("env MYSQL_USER:%v", os.Getenv("MYSQL_USER"))) 63 log.Info(fmt.Sprintf("env MYSQL_USER:%v", os.Getenv("MYSQL_USER")))
65 log.Info(fmt.Sprintf("env MYSQL_PASSWORD:%v", os.Getenv("MYSQL_PASSWORD"))) 64 log.Info(fmt.Sprintf("env MYSQL_PASSWORD:%v", os.Getenv("MYSQL_PASSWORD")))
66 log.Info(fmt.Sprintf("env MYSQL_HOST:%v", os.Getenv("MYSQL_HOST"))) 65 log.Info(fmt.Sprintf("env MYSQL_HOST:%v", os.Getenv("MYSQL_HOST")))