This commit is contained in:
2023-03-10 11:52:36 +08:00
parent b0a7082a38
commit 70eae8af65
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -9,10 +9,10 @@ else
useradd -m -s /bin/bash appruner useradd -m -s /bin/bash appruner
fi fi
app_name=gin-article
# 获取当前目录的绝对路径 # 获取当前目录的绝对路径
app_path=$(cd "$(dirname "$0")"; pwd) app_path=$(cd "$(dirname "$0")"; pwd)
app_name=$(basename "${app_path}")
# 执行 git pull 命令 # 执行 git pull 命令
cd ${app_path} && git pull cd ${app_path} && git pull
-2
View File
@@ -2,7 +2,6 @@ package main
import ( import (
"embed" "embed"
"fmt"
"gin-article/handler" "gin-article/handler"
"path/filepath" "path/filepath"
@@ -43,7 +42,6 @@ func Router() *gin.Engine {
r := gin.Default() r := gin.Default()
r.HTMLRender = loadTemplates("./tmpl") r.HTMLRender = loadTemplates("./tmpl")
fmt.Println(r.HTMLRender)
r.Static("/statics", "statics") r.Static("/statics", "statics")
r.GET("/", handler.Index) r.GET("/", handler.Index)