This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
fix
#2189
tags/v1.21.12.1
Unknwon
10 years ago
parent
1d95844d55
commit
037a01c4e4
4 changed files
with
21 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
gogs.go
+15
-0
modules/setting/miniwinsvc.go
+3
-2
modules/setting/setting.go
+3
-0
routers/install.go
+ 0
- 1
gogs.go
View File
@@ -12,7 +12,6 @@ import (
"runtime"
"github.com/codegangsta/cli"
_ "github.com/kardianos/minwinsvc"
"github.com/gogits/gogs/cmd"
"github.com/gogits/gogs/modules/setting"
+ 15
- 0
modules/setting/miniwinsvc.go
View File
@@ -0,0 +1,15 @@
// +build miniwinsvc
// Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package setting
import (
_ "github.com/kardianos/minwinsvc"
)
func init() {
SupportMiniWinService = true
}
+ 3
- 2
modules/setting/setting.go
View File
@@ -181,8 +181,9 @@ var (
// Highlight settings are loaded in modules/template/hightlight.go
// Other settings
ShowFooterBranding bool
ShowFooterVersion bool
ShowFooterBranding bool
ShowFooterVersion bool
SupportMiniWinService bool
// Global setting objects
Cfg *ini.File
+ 3
- 0
routers/install.go
View File
@@ -82,6 +82,9 @@ func GlobalInit() {
if models.EnableTidb {
log.Info("TiDB Supported")
}
if setting.SupportMiniWinService {
log.Info("Builtin Windows Service Supported")
}
checkRunMode()
if setting.StartSSHServer {
Write
Preview
Loading…
Cancel
Save