测试acter

This commit is contained in:
张超
2025-06-23 17:08:58 +08:00
parent ab66b9e39d
commit 3f65ca8257
2 changed files with 3 additions and 6 deletions

View File

@@ -25,9 +25,9 @@ WORKDIR /root/
# 从构建阶段复制可执行文件 # 从构建阶段复制可执行文件
COPY --from=builder /app/app . COPY --from=builder /app/app .
# 在容器目录 /root/ 创建一个目录 为config # 在容器目录 /root/ 创建一个目录 为config
RUN mkdir conf . RUN mkdir config .
COPY --from=builder /app/conf/ ./conf/ COPY --from=builder /app/config/ ./config/
COPY --from=builder /app/templates/ ./templates/ COPY --from=builder /app/web/ ./web/
# 暴露端口 # 暴露端口
EXPOSE 8910 EXPOSE 8910

View File

@@ -81,9 +81,6 @@ func main() {
sessions.Sessions("blog-session", store), sessions.Sessions("blog-session", store),
) )
// 7. 设置模板路径
//router.HTMLRender = createTemplateRenderer(cfg.Theme.Current)
// 8. 注册路由 // 8. 注册路由
routers.RegisterRoutes(router) routers.RegisterRoutes(router)