update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user