aboutsummaryrefslogtreecommitdiff
path: root/routers/install.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/routers/install.go b/routers/install.go
index b2523080..5240b88e 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -13,9 +13,9 @@ import (
"strings"
"github.com/Unknwon/com"
- "github.com/Unknwon/macaron"
"github.com/go-xorm/xorm"
"gopkg.in/ini.v1"
+ "gopkg.in/macaron.v1"
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/models/cron"
@@ -25,6 +25,7 @@ import (
"github.com/gogits/gogs/modules/mailer"
"github.com/gogits/gogs/modules/middleware"
"github.com/gogits/gogs/modules/setting"
+ "github.com/gogits/gogs/modules/ssh"
"github.com/gogits/gogs/modules/user"
)
@@ -66,6 +67,7 @@ func GlobalInit() {
models.HasEngine = true
cron.NewContext()
models.InitDeliverHooks()
+ models.InitTestPullRequests()
log.NewGitLogger(path.Join(setting.LogRootPath, "http.log"))
}
if models.EnableSQLite3 {
@@ -75,6 +77,11 @@ func GlobalInit() {
log.Info("TiDB Supported")
}
checkRunMode()
+
+ if setting.StartSSHServer {
+ ssh.Listen(setting.SSHPort)
+ log.Info("SSH server started on :%v", setting.SSHPort)
+ }
}
func InstallInit(ctx *middleware.Context) {