KEY_FILE = key.pem
[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
HOST = 127.0.0.1:3306
NAME = gogs
func newCacheService() {
CacheAdapter = Cfg.MustValue("cache", "ADAPTER", "memory")
+ if cache.EnableRedis {
+ log.Info("Redis Enabled")
+ }
+ if cache.EnableMemcache {
+ log.Info("Memcache Enabled")
+ }
switch CacheAdapter {
case "memory":
// repo is bare and display enable
if displayBare && ctx.Repo.Repository.IsBare {
+ log.Debug("Bare repository: %s", ctx.Repo.RepoLink)
ctx.HTML(200, "repo/single_bare")
return
}
models.LoadModelsConfig()
models.LoadRepoConfig()
models.NewRepoContext()
+ NewServices()
if base.InstallLock {
if err := models.NewEngine(); err != nil {
}
models.HasEngine = true
+ if models.EnableSQLite3 {
+ log.Info("SQLite3 Enabled")
+ }
cron.NewCronContext()
}
- NewServices()
checkRunMode()
}
</span>
</td>
<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 class="date">
<span class="wrap">{{TimeSince $commit.Committer.When}}</span>