mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 10:17:37 +02:00
new UI on admin/monitor
This commit is contained in:
1 parent
6fdc881bd4
commit
81b8427438
9 files changed
+196
-144
No files matched your search
-11
@@ -12,7 +12,6 @@ import (
|
||||
"net/http"
|
||||
"net/http/fcgi"
|
||||
"os"
|
||||
"os/signal"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
@@ -531,16 +530,6 @@ func runWeb(ctx *cli.Context) {
|
||||
// Not found handler.
|
||||
m.NotFound(routers.NotFound)
|
||||
|
||||
// Detect kill signal.
|
||||
c := make(chan os.Signal, 1)
|
||||
signal.Notify(c, os.Interrupt)
|
||||
go func() {
|
||||
for _ = range c {
|
||||
fmt.Println("Kill signal detected, exiting now...")
|
||||
os.Exit(0)
|
||||
}
|
||||
}()
|
||||
|
||||
// Flag for port number in case first time run conflict.
|
||||
if ctx.IsSet("port") {
|
||||
setting.AppUrl = strings.Replace(setting.AppUrl, setting.HttpPort, ctx.String("port"), 1)
|
||||
|
||||
Reference in new issue
Block a user