提交 f7a1fdd0 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

暂时关闭当前系统检测 等待linux系统配置完成后开发

上级 78209ed6
...@@ -8,7 +8,7 @@ import ( ...@@ -8,7 +8,7 @@ import (
"gin-vue-admin/init/qmlog" "gin-vue-admin/init/qmlog"
"gin-vue-admin/init/qmsql" "gin-vue-admin/init/qmsql"
"gin-vue-admin/init/registTable" "gin-vue-admin/init/registTable"
"runtime" //"runtime"
) )
// @title Swagger Example API // @title Swagger Example API
...@@ -31,14 +31,14 @@ func main() { ...@@ -31,14 +31,14 @@ func main() {
Router := initRouter.InitRouter() // 注册路由 Router := initRouter.InitRouter() // 注册路由
qmlog.QMLog.Info("服务器开启") // 日志测试代码 qmlog.QMLog.Info("服务器开启") // 日志测试代码
//Router.RunTLS(":443","ssl.pem", "ssl.key") // https支持 需要添加中间件 //Router.RunTLS(":443","ssl.pem", "ssl.key") // https支持 需要添加中间件
sysType := runtime.GOOS //sysType := runtime.GOOS
//
if sysType == "linux" { //if sysType == "linux" {
// LINUX系统 // // LINUX系统
// 借助endless开发无感知重启后台 以及前端接口重启后台功能 // // 借助endless开发无感知重启后台 以及前端接口重启后台功能
} //}
if sysType == "windows" { //if sysType == "windows" {
// WIN系统 // WIN系统
cmd.RunWindowsServer(Router) cmd.RunWindowsServer(Router)
} //}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册