diff options
author | Michael Li <alimy@gility.net> | 2020-02-17 22:48:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 22:48:24 +0800 |
commit | 4d83fd4238e177d9327c760a5386bc53f25dedbb (patch) | |
tree | 4c730773e80d0110a449392513b88d70cf1e85fe /internal/route/install.go | |
parent | fd14ad6ce9bfe14e2a551845f27058ecf3853d74 (diff) |
Use go-bindata to embed `public` and `templates` files into binary (#5920)
* fixed private repositories are hidden in the organization's view
* use go-bindata integrate public and templates files to gogs binary
* optimize Dockerfile don't COPY public and templates files
* use kevinburke's go-bindata to generate assets code
* reset develepment as default run mode in configure file
* optimize generated assets code relayout and help function
* fixed code format
* Update conf/app.ini
* assets: add LICENSE headers
* Some housekeeping
* assets/public: simplify code logic
* assets/templates: simplify code logic
* cmd/web: more concise variable names
* Minor changes
* Add custom public and templates support back
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
Diffstat (limited to 'internal/route/install.go')
-rw-r--r-- | internal/route/install.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/route/install.go b/internal/route/install.go index dcd7a727..9eba4dde 100644 --- a/internal/route/install.go +++ b/internal/route/install.go @@ -43,7 +43,7 @@ func checkRunMode() { } else { git.Debug = true } - log.Info("Run Mode: %s", strings.Title(macaron.Env)) + log.Info("Run mode: %s", strings.Title(macaron.Env)) } func NewServices() { @@ -78,10 +78,13 @@ func GlobalInit() { db.InitTestPullRequests() } if db.EnableSQLite3 { - log.Info("SQLite3 Supported") + log.Info("SQLite3 is supported") } if setting.SupportMiniWinService { - log.Info("Builtin Windows Service Supported") + log.Info("Builtin Windows Service is supported") + } + if setting.LoadAssetsFromDisk { + log.Info("Assets are loaded from disk") } checkRunMode() |