1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

Basic admin data table, models changes

This commit is contained in:
Unknown
2014-03-20 16:04:56 -04:00
parent 686348974b
commit 06631ab91f
13 changed files with 291 additions and 209 deletions

View File

@@ -26,12 +26,14 @@ type Mailer struct {
}
var (
AppVer string
AppName string
AppLogo string
AppUrl string
Domain string
SecretKey string
AppVer string
AppName string
AppLogo string
AppUrl string
Domain string
SecretKey string
RepoRootPath string
Cfg *goconfig.ConfigFile
MailService *Mailer
)
@@ -173,6 +175,13 @@ func init() {
AppUrl = Cfg.MustValue("server", "ROOT_URL")
Domain = Cfg.MustValue("server", "DOMAIN")
SecretKey = Cfg.MustValue("security", "SECRET_KEY")
// Determine and create root git reposiroty path.
RepoRootPath = Cfg.MustValue("repository", "ROOT")
if err = os.MkdirAll(RepoRootPath, os.ModePerm); err != nil {
fmt.Printf("models.init(fail to create RepoRootPath(%s)): %v\n", RepoRootPath, err)
os.Exit(2)
}
}
func NewServices() {