From 70eae8af659d311f9eb2e365fe19e270e52263ee Mon Sep 17 00:00:00 2001 From: woon Date: Fri, 10 Mar 2023 11:52:36 +0800 Subject: [PATCH] update --- build.sh | 2 +- router.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 9550c29..d46f512 100644 --- a/build.sh +++ b/build.sh @@ -9,10 +9,10 @@ else useradd -m -s /bin/bash appruner fi -app_name=gin-article # 获取当前目录的绝对路径 app_path=$(cd "$(dirname "$0")"; pwd) +app_name=$(basename "${app_path}") # 执行 git pull 命令 cd ${app_path} && git pull diff --git a/router.go b/router.go index 5ab3f0e..74f2433 100644 --- a/router.go +++ b/router.go @@ -2,7 +2,6 @@ package main import ( "embed" - "fmt" "gin-article/handler" "path/filepath" @@ -43,7 +42,6 @@ func Router() *gin.Engine { r := gin.Default() r.HTMLRender = loadTemplates("./tmpl") - fmt.Println(r.HTMLRender) r.Static("/statics", "statics") r.GET("/", handler.Index)