diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-04-14 14:50:37 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-04-14 14:50:37 +0800 |
commit | 8283e16ef7af197ee77b1be412bf875ae97c789e (patch) | |
tree | c145517a3b885c49408f35e0cb9c9aabe6201a35 /routers/install.go | |
parent | 6cee65db5a6e6ef7372f19d45c22a416e130afed (diff) | |
parent | f644cefa865c04b440902695ba90114b224c640d (diff) |
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/routers/install.go b/routers/install.go index d66f5b39..f0940137 100644 --- a/routers/install.go +++ b/routers/install.go @@ -22,6 +22,7 @@ import ( "github.com/gogits/gogs/modules/log" "github.com/gogits/gogs/modules/mailer" "github.com/gogits/gogs/modules/middleware" + "github.com/gogits/gogs/modules/social" ) // Check run mode(Default of martini is Dev). @@ -36,6 +37,11 @@ func checkRunMode() { log.Info("Run Mode: %s", strings.Title(martini.Env)) } +func NewServices() { + base.NewBaseServices() + social.NewOauthService() +} + // GlobalInit is for global configuration reload-able. func GlobalInit() { base.NewConfigContext() @@ -52,7 +58,7 @@ func GlobalInit() { models.HasEngine = true cron.NewCronContext() } - base.NewServices() + NewServices() checkRunMode() } |