Add build tag enable prompt
This commit is contained in:
parent
0e41726ece
commit
8bed017557
5 changed files with 13 additions and 3 deletions
|
@ -22,7 +22,7 @@ CERT_FILE = cert.pem
|
||||||
KEY_FILE = key.pem
|
KEY_FILE = key.pem
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
; Either "mysql", "postgres" or "sqlite3"(binary release only), it's your choice
|
; Either "mysql", "postgres" or "sqlite3", it's your choice
|
||||||
DB_TYPE = mysql
|
DB_TYPE = mysql
|
||||||
HOST = 127.0.0.1:3306
|
HOST = 127.0.0.1:3306
|
||||||
NAME = gogs
|
NAME = gogs
|
||||||
|
|
|
@ -174,6 +174,12 @@ func newLogService() {
|
||||||
|
|
||||||
func newCacheService() {
|
func newCacheService() {
|
||||||
CacheAdapter = Cfg.MustValue("cache", "ADAPTER", "memory")
|
CacheAdapter = Cfg.MustValue("cache", "ADAPTER", "memory")
|
||||||
|
if cache.EnableRedis {
|
||||||
|
log.Info("Redis Enabled")
|
||||||
|
}
|
||||||
|
if cache.EnableMemcache {
|
||||||
|
log.Info("Memcache Enabled")
|
||||||
|
}
|
||||||
|
|
||||||
switch CacheAdapter {
|
switch CacheAdapter {
|
||||||
case "memory":
|
case "memory":
|
||||||
|
|
|
@ -201,6 +201,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
|
||||||
|
|
||||||
// repo is bare and display enable
|
// repo is bare and display enable
|
||||||
if displayBare && ctx.Repo.Repository.IsBare {
|
if displayBare && ctx.Repo.Repository.IsBare {
|
||||||
|
log.Debug("Bare repository: %s", ctx.Repo.RepoLink)
|
||||||
ctx.HTML(200, "repo/single_bare")
|
ctx.HTML(200, "repo/single_bare")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,7 @@ func GlobalInit() {
|
||||||
models.LoadModelsConfig()
|
models.LoadModelsConfig()
|
||||||
models.LoadRepoConfig()
|
models.LoadRepoConfig()
|
||||||
models.NewRepoContext()
|
models.NewRepoContext()
|
||||||
|
NewServices()
|
||||||
|
|
||||||
if base.InstallLock {
|
if base.InstallLock {
|
||||||
if err := models.NewEngine(); err != nil {
|
if err := models.NewEngine(); err != nil {
|
||||||
|
@ -56,9 +57,11 @@ func GlobalInit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
models.HasEngine = true
|
models.HasEngine = true
|
||||||
|
if models.EnableSQLite3 {
|
||||||
|
log.Info("SQLite3 Enabled")
|
||||||
|
}
|
||||||
cron.NewCronContext()
|
cron.NewCronContext()
|
||||||
}
|
}
|
||||||
NewServices()
|
|
||||||
checkRunMode()
|
checkRunMode()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="text">
|
<td class="text">
|
||||||
<span class="wrap"><a href="/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}}">{{$commit.Message}}</a></span>
|
<span class="wrap"><a rel="nofollow" href="/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}}">{{$commit.Message}}</a></span>
|
||||||
</td>
|
</td>
|
||||||
<td class="date">
|
<td class="date">
|
||||||
<span class="wrap">{{TimeSince $commit.Committer.When}}</span>
|
<span class="wrap">{{TimeSince $commit.Committer.When}}</span>
|
||||||
|
|
Loading…
Add table
Reference in a new issue