gitea logs to gogs.log #266

Closed
opened 2025-11-02 03:16:31 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @MorphBonehunter on GitHub (Jan 23, 2017).

  • Gitea version (or commit ref): a8048c19f3
  • Git version: 2.11.0
  • Operating system: Arch Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

Gitea writes still to an log file named "gogs.log" if someone use the "log.file" Logging.
So maybe the fix could be:

diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index c07b584b..910ec930 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -931,7 +931,7 @@ func newLogService() {
                case "console":
                        LogConfigs[i] = fmt.Sprintf(`{"level":%s}`, level)
                case "file":
-                       logPath := sec.Key("FILE_NAME").MustString(path.Join(LogRootPath, "gogs.log"))
+                       logPath := sec.Key("FILE_NAME").MustString(path.Join(LogRootPath, "gitea.log"))
                        if err = os.MkdirAll(path.Dir(logPath), os.ModePerm); err != nil {
                                panic(err.Error())
                        }
Originally created by @MorphBonehunter on GitHub (Jan 23, 2017). - Gitea version (or commit ref): a8048c19f3dba52bbc0db6a0d8cbdfdf3fb6c149 - Git version: 2.11.0 - Operating system: Arch Linux - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant ## Description Gitea writes still to an log file named "gogs.log" if someone use the "log.file" Logging. So maybe the fix could be: ``` diff --git a/modules/setting/setting.go b/modules/setting/setting.go index c07b584b..910ec930 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -931,7 +931,7 @@ func newLogService() { case "console": LogConfigs[i] = fmt.Sprintf(`{"level":%s}`, level) case "file": - logPath := sec.Key("FILE_NAME").MustString(path.Join(LogRootPath, "gogs.log")) + logPath := sec.Key("FILE_NAME").MustString(path.Join(LogRootPath, "gitea.log")) if err = os.MkdirAll(path.Dir(logPath), os.ModePerm); err != nil { panic(err.Error()) } ```
GiteaMirror added the type/enhancement label 2025-11-02 03:16:31 -06:00
Author
Owner

@MorphBonehunter commented on GitHub (Jan 23, 2017):

BTW. (not really related), there are a log of occurrences in the code:

README.md:The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service. With Go, this can be done with an independent binary distribution across **all platforms** that Go supports, including Linux, macOS, and Windows on x86, amd64, ARM and PowerPC architectures. Want to try it before doing anything else? Do it [online](https://try.gitea.io/)! This project is [forked](https://blog.gitea.io/2016/12/welcome-to-gitea/) from [Gogs](https://gogs.io).
cmd/web.go:					m.Post("/gogs/new", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksNewPost)
cmd/web.go:					m.Post("/gogs/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost)
cmd/web.go:				m.Post("/gogs/new", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksNewPost)
cmd/web.go:				m.Post("/gogs/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost)
models/login_source.go:	if err = c.Hello("gogs"); err != nil {
models/webhook.go:	"gogs":  GOGS,
models/webhook.go:		return "gogs"
modules/avatar/avatar_test.go:		_, err := RandomImage([]byte("gogs@local"))
modules/avatar/avatar_test.go:			_, err := RandomImageSize(0, []byte("gogs@local"))
modules/log/file.go://	"filename":"log/gogs.log",
modules/markdown/markdown.go:	// e.g. https://try.gogs.io/gogs/gogs/commit/d8a994ef243349f321568f9e36d5c3f444b99cae#diff-2
modules/markdown/markdown.go:	// e.g. https://try.gogs.io/gogs/gogs/issues/4#issue-685
modules/markdown/markdown.go:	// e.g. gogits/gogs#12345
modules/markdown/markdown_test.go:					"https://external-link.gogs.io/gogs/gogs/commit/d8a994ef243349f321568f9e36d5c3f444b99cae#diff-2", "<a href=\"https://external-link.gogs.io/gogs/gogs/commit/d8a994ef243349f321568f9e36d5c3f444b99cae#diff-2\">https://external-link.gogs.io/gogs/gogs/commit/d8a994ef243349f321568f9e36d5c3f444b99cae#diff-2</a>",
modules/setting/setting.go:			logPath := sec.Key("FILE_NAME").MustString(path.Join(LogRootPath, "gogs.log"))
modules/setting/setting.go:	Webhook.Types = []string{"gogs", "slack"}
modules/ssh/ssh.go:	keyPath := filepath.Join(setting.AppDataPath, "ssh/gogs.rsa")
options/locale/TRANSLATORS:Camille Baronnet <gogs AT camillebaronnet DOT fr>
options/locale/TRANSLATORS:Thomas Fanninger <gogs DOT thomas AT fanninger DOT at>
routers/api/v1/admin/org.go:// see https://github.com/gogits/go-gogs-client/wiki/Administration-Organizations#create-a-new-organization
routers/api/v1/admin/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository
routers/api/v1/admin/user.go:// see https://github.com/gogits/go-gogs-client/wiki/Administration-Users#create-a-new-user
routers/api/v1/admin/user.go:// see https://github.com/gogits/go-gogs-client/wiki/Administration-Users#edit-an-existing-user
routers/api/v1/admin/user.go:// https://github.com/gogits/go-gogs-client/wiki/Administration-Users#delete-a-user
routers/api/v1/admin/user.go:// see https://github.com/gogits/go-gogs-client/wiki/Administration-Users#create-a-public-key-for-user
routers/api/v1/misc/markdown.go:// see https://github.com/gogits/go-gogs-client/wiki/Miscellaneous#render-an-arbitrary-markdown-document
routers/api/v1/misc/markdown.go:// see https://github.com/gogits/go-gogs-client/wiki/Miscellaneous#render-a-markdown-document-in-raw-mode
routers/api/v1/org/org.go:// see https://github.com/gogits/go-gogs-client/wiki/Organizations#list-your-organizations
routers/api/v1/org/org.go:// see https://github.com/gogits/go-gogs-client/wiki/Organizations#list-user-organizations
routers/api/v1/org/org.go:// see https://github.com/gogits/go-gogs-client/wiki/Organizations#get-an-organization
routers/api/v1/org/org.go:// see https://github.com/gogits/go-gogs-client/wiki/Organizations#edit-an-organization
routers/api/v1/repo/branch.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#get-branch
routers/api/v1/repo/branch.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#list-branches
routers/api/v1/repo/file.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-raw-content
routers/api/v1/repo/file.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-archive
routers/api/v1/repo/hook.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#list-hooks
routers/api/v1/repo/hook.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#create-a-hook
routers/api/v1/repo/hook.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#edit-a-hook
routers/api/v1/repo/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#list-deploy-keys
routers/api/v1/repo/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#get-a-deploy-key
routers/api/v1/repo/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#add-a-new-deploy-key
routers/api/v1/repo/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#remove-a-deploy-key
routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#search-repositories
routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#list-your-repositories
routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#create
routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#migrate
routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#get
routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#delete
routers/api/v1/user/app.go:// see https://github.com/gogits/go-gogs-client/wiki/Users#list-access-tokens-for-a-user
routers/api/v1/user/app.go:// see https://github.com/gogits/go-gogs-client/wiki/Users#create-a-access-token
routers/api/v1/user/email.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Emails#list-email-addresses-for-a-user
routers/api/v1/user/email.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Emails#add-email-addresses
routers/api/v1/user/email.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Emails#delete-email-addresses
routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#list-followers-of-a-user
routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#list-users-followed-by-another-user
routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#check-if-you-are-following-a-user
routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#check-if-one-user-follows-another
routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#follow-a-user
routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#unfollow-a-user
routers/api/v1/user/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#list-your-public-keys
routers/api/v1/user/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#list-public-keys-for-a-user
routers/api/v1/user/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#get-a-single-public-key
routers/api/v1/user/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#create-a-public-key
routers/api/v1/user/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#delete-a-public-key
routers/repo/webhook.go:	ctx.Data["HookType"] = "gogs"
routers/repo/webhook.go:		ctx.Data["HookType"] = "gogs"
scripts/autoboot.sh:su git -c "/home/git/gogs/scripts/gogs_supervisord.sh restart"
scripts/mysql.sql:DROP DATABASE IF EXISTS gogs;
scripts/mysql.sql:CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
scripts/windows/install-as-service.bat::: or copy it to the gogs path.
scripts/windows/install-as-service.bat::: This script itself should run in the gogs path, too.
scripts/windows/install-as-service.bat::: https://gogs.io/docs/installation
scripts/windows/install-as-service.bat::: To unistall the service, run "nssm remove gogs" and restart Windows.
scripts/windows/install-as-service.bat:SET gogspath=C:\gogs
scripts/windows/install-as-service.bat:nssm install gogs "%gogspath%\gogs.exe"
scripts/windows/install-as-service.bat:nssm set gogs AppParameters "web"
scripts/windows/install-as-service.bat:nssm set gogs Description "A painless self-hosted Git service."
scripts/windows/install-as-service.bat:nssm set gogs DisplayName "Gitea - Git with a cup of tea"
scripts/windows/install-as-service.bat:nssm set gogs Start SERVICE_DELAYED_AUTO_START
scripts/windows/install-as-service.bat:nssm set gogs AppStdout "%gogspath%\gogs.log"
scripts/windows/install-as-service.bat:nssm start gogs
templates/home.tmpl:					Starte einfach <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">die Anwendung</a> für deine Plattform. Gitea gibt es auch für <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a>, <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a> oder als <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">Installationspaket</a>.
templates/home.tmpl:					直接用 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/install-from-binary/">執行檔安裝</a>,還可以透過 <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> 或 <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>,以及 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/install-from-package/">套件</a>安装。
templates/home.tmpl:					您除了可以根据操作系统平台通过 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/install-from-binary/">二进制运行</a>,还可以通过 <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> 或 <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>,以及 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/install-from-package/">包管理</a> 安装。
templates/home.tmpl:                    <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>
templates/home.tmpl:					Simplemente <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">arranca el binario</a> para tu plataforma. O usa Gitea con <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> o <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>, o utilice el <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">paquete</a>.
templates/home.tmpl:					Simplesmente <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">rode o executável</a> para o seu sistema operacional. Ou obtenha o Gitea com o <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> ou <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>, ou baixe o <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">pacote</a>.
templates/home.tmpl:					Просто <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">запустите исполняемый файл</a> для вашей платформы. Изпользуйте Gitea с <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> или <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>, или загрузите <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">пакет</a>.
templates/home.tmpl:					Je hoeft alleen maar de <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">binary</a> uit te voeren. Of gebruik Gitea met <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a>, <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>, of download een <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">installatiepakket</a>.
templates/home.tmpl:					Simply <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">run the binary</a> for your platform. Or ship Gitea with <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> or <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>, or get it <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">packaged</a>.
templates/org/settings/hook_new.tmpl:						{{if eq .HookType "gogs"}}
templates/org/settings/hook_new.tmpl:					{{template "repo/settings/hook_gogs" .}}
templates/repo/issue/labels.tmpl:								   href="https://discuss.gogs.io/t/how-to-use-predefined-label-templates/599">
templates/repo/settings/hook_gogs.tmpl:{{if eq .HookType "gogs"}}
templates/repo/settings/hook_gogs.tmpl:	<form class="ui form" action="{{.BaseLink}}/settings/hooks/gogs/{{if .PageIsSettingsHooksNew}}new{{else}}{{.Webhook.ID}}{{end}}" method="post">
templates/repo/settings/hook_list.tmpl:					<a class="item" href="{{.BaseLink}}/settings/hooks/gogs/new">
templates/repo/settings/hook_new.tmpl:						{{if eq .HookType "gogs"}}
templates/repo/settings/hook_new.tmpl:					{{template "repo/settings/hook_gogs" .}}
vendor/github.com/Unknwon/cae/README.md:- [Gogs](https://github.com/gogits/gogs): self hosted Git service in the Go Programming Language.
vendor/github.com/Unknwon/i18n/README.md:This package provides multiple-language options to improve user experience. Sites like [Go Walker](http://gowalker.org) and [gogs.io](http://gogs.io) are using this module to implement Chinese and English user interfaces.
vendor/github.com/Unknwon/i18n/README.md:The format of locale files is very like INI format configuration file, which is basically key-value pairs. But this module has some improvements. Every language corresponding to a locale file, for example, under `conf/locale` folder of [gogsweb](https://github.com/gogits/gogsweb/tree/master/conf/locale), there are two files called `locale_en-US.ini` and `locale_zh-CN.ini`.
vendor/github.com/Unknwon/i18n/README.md:The name and extensions of locale files can be anything, but we strongly recommend you to follow the style of gogsweb.
vendor/github.com/go-xorm/xorm/README.md:* [Gogs](http://try.gogits.org) - [github.com/gogits/gogs](http://github.com/gogits/gogs)
vendor/github.com/go-xorm/xorm/README_CN.md:* [Gogs](http://try.gogits.org) - [github.com/gogits/gogs](http://github.com/gogits/gogs)
vendor/gopkg.in/macaron.v1/README.md:- [Gogs](https://gogs.io): A painless self-hosted Git Service

I know, the most of this are documentation Links, but there are a lot of other places...

@MorphBonehunter commented on GitHub (Jan 23, 2017): BTW. (not really related), there are a log of occurrences in the code: ``` README.md:The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service. With Go, this can be done with an independent binary distribution across **all platforms** that Go supports, including Linux, macOS, and Windows on x86, amd64, ARM and PowerPC architectures. Want to try it before doing anything else? Do it [online](https://try.gitea.io/)! This project is [forked](https://blog.gitea.io/2016/12/welcome-to-gitea/) from [Gogs](https://gogs.io). cmd/web.go: m.Post("/gogs/new", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksNewPost) cmd/web.go: m.Post("/gogs/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost) cmd/web.go: m.Post("/gogs/new", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksNewPost) cmd/web.go: m.Post("/gogs/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost) models/login_source.go: if err = c.Hello("gogs"); err != nil { models/webhook.go: "gogs": GOGS, models/webhook.go: return "gogs" modules/avatar/avatar_test.go: _, err := RandomImage([]byte("gogs@local")) modules/avatar/avatar_test.go: _, err := RandomImageSize(0, []byte("gogs@local")) modules/log/file.go:// "filename":"log/gogs.log", modules/markdown/markdown.go: // e.g. https://try.gogs.io/gogs/gogs/commit/d8a994ef243349f321568f9e36d5c3f444b99cae#diff-2 modules/markdown/markdown.go: // e.g. https://try.gogs.io/gogs/gogs/issues/4#issue-685 modules/markdown/markdown.go: // e.g. gogits/gogs#12345 modules/markdown/markdown_test.go: "https://external-link.gogs.io/gogs/gogs/commit/d8a994ef243349f321568f9e36d5c3f444b99cae#diff-2", "<a href=\"https://external-link.gogs.io/gogs/gogs/commit/d8a994ef243349f321568f9e36d5c3f444b99cae#diff-2\">https://external-link.gogs.io/gogs/gogs/commit/d8a994ef243349f321568f9e36d5c3f444b99cae#diff-2</a>", modules/setting/setting.go: logPath := sec.Key("FILE_NAME").MustString(path.Join(LogRootPath, "gogs.log")) modules/setting/setting.go: Webhook.Types = []string{"gogs", "slack"} modules/ssh/ssh.go: keyPath := filepath.Join(setting.AppDataPath, "ssh/gogs.rsa") options/locale/TRANSLATORS:Camille Baronnet <gogs AT camillebaronnet DOT fr> options/locale/TRANSLATORS:Thomas Fanninger <gogs DOT thomas AT fanninger DOT at> routers/api/v1/admin/org.go:// see https://github.com/gogits/go-gogs-client/wiki/Administration-Organizations#create-a-new-organization routers/api/v1/admin/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository routers/api/v1/admin/user.go:// see https://github.com/gogits/go-gogs-client/wiki/Administration-Users#create-a-new-user routers/api/v1/admin/user.go:// see https://github.com/gogits/go-gogs-client/wiki/Administration-Users#edit-an-existing-user routers/api/v1/admin/user.go:// https://github.com/gogits/go-gogs-client/wiki/Administration-Users#delete-a-user routers/api/v1/admin/user.go:// see https://github.com/gogits/go-gogs-client/wiki/Administration-Users#create-a-public-key-for-user routers/api/v1/misc/markdown.go:// see https://github.com/gogits/go-gogs-client/wiki/Miscellaneous#render-an-arbitrary-markdown-document routers/api/v1/misc/markdown.go:// see https://github.com/gogits/go-gogs-client/wiki/Miscellaneous#render-a-markdown-document-in-raw-mode routers/api/v1/org/org.go:// see https://github.com/gogits/go-gogs-client/wiki/Organizations#list-your-organizations routers/api/v1/org/org.go:// see https://github.com/gogits/go-gogs-client/wiki/Organizations#list-user-organizations routers/api/v1/org/org.go:// see https://github.com/gogits/go-gogs-client/wiki/Organizations#get-an-organization routers/api/v1/org/org.go:// see https://github.com/gogits/go-gogs-client/wiki/Organizations#edit-an-organization routers/api/v1/repo/branch.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#get-branch routers/api/v1/repo/branch.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#list-branches routers/api/v1/repo/file.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-raw-content routers/api/v1/repo/file.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-archive routers/api/v1/repo/hook.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#list-hooks routers/api/v1/repo/hook.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#create-a-hook routers/api/v1/repo/hook.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#edit-a-hook routers/api/v1/repo/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#list-deploy-keys routers/api/v1/repo/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#get-a-deploy-key routers/api/v1/repo/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#add-a-new-deploy-key routers/api/v1/repo/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#remove-a-deploy-key routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#search-repositories routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#list-your-repositories routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#create routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#migrate routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#get routers/api/v1/repo/repo.go:// see https://github.com/gogits/go-gogs-client/wiki/Repositories#delete routers/api/v1/user/app.go:// see https://github.com/gogits/go-gogs-client/wiki/Users#list-access-tokens-for-a-user routers/api/v1/user/app.go:// see https://github.com/gogits/go-gogs-client/wiki/Users#create-a-access-token routers/api/v1/user/email.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Emails#list-email-addresses-for-a-user routers/api/v1/user/email.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Emails#add-email-addresses routers/api/v1/user/email.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Emails#delete-email-addresses routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#list-followers-of-a-user routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#list-users-followed-by-another-user routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#check-if-you-are-following-a-user routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#check-if-one-user-follows-another routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#follow-a-user routers/api/v1/user/follower.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#unfollow-a-user routers/api/v1/user/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#list-your-public-keys routers/api/v1/user/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#list-public-keys-for-a-user routers/api/v1/user/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#get-a-single-public-key routers/api/v1/user/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#create-a-public-key routers/api/v1/user/key.go:// see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#delete-a-public-key routers/repo/webhook.go: ctx.Data["HookType"] = "gogs" routers/repo/webhook.go: ctx.Data["HookType"] = "gogs" scripts/autoboot.sh:su git -c "/home/git/gogs/scripts/gogs_supervisord.sh restart" scripts/mysql.sql:DROP DATABASE IF EXISTS gogs; scripts/mysql.sql:CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; scripts/windows/install-as-service.bat::: or copy it to the gogs path. scripts/windows/install-as-service.bat::: This script itself should run in the gogs path, too. scripts/windows/install-as-service.bat::: https://gogs.io/docs/installation scripts/windows/install-as-service.bat::: To unistall the service, run "nssm remove gogs" and restart Windows. scripts/windows/install-as-service.bat:SET gogspath=C:\gogs scripts/windows/install-as-service.bat:nssm install gogs "%gogspath%\gogs.exe" scripts/windows/install-as-service.bat:nssm set gogs AppParameters "web" scripts/windows/install-as-service.bat:nssm set gogs Description "A painless self-hosted Git service." scripts/windows/install-as-service.bat:nssm set gogs DisplayName "Gitea - Git with a cup of tea" scripts/windows/install-as-service.bat:nssm set gogs Start SERVICE_DELAYED_AUTO_START scripts/windows/install-as-service.bat:nssm set gogs AppStdout "%gogspath%\gogs.log" scripts/windows/install-as-service.bat:nssm start gogs templates/home.tmpl: Starte einfach <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">die Anwendung</a> für deine Plattform. Gitea gibt es auch für <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a>, <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a> oder als <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">Installationspaket</a>. templates/home.tmpl: 直接用 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/install-from-binary/">執行檔安裝</a>,還可以透過 <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> 或 <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>,以及 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/install-from-package/">套件</a>安装。 templates/home.tmpl: 您除了可以根据操作系统平台通过 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/install-from-binary/">二进制运行</a>,还可以通过 <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> 或 <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>,以及 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/install-from-package/">包管理</a> 安装。 templates/home.tmpl: <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a> templates/home.tmpl: Simplemente <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">arranca el binario</a> para tu plataforma. O usa Gitea con <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> o <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>, o utilice el <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">paquete</a>. templates/home.tmpl: Simplesmente <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">rode o executável</a> para o seu sistema operacional. Ou obtenha o Gitea com o <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> ou <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>, ou baixe o <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">pacote</a>. templates/home.tmpl: Просто <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">запустите исполняемый файл</a> для вашей платформы. Изпользуйте Gitea с <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> или <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>, или загрузите <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">пакет</a>. templates/home.tmpl: Je hoeft alleen maar de <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">binary</a> uit te voeren. Of gebruik Gitea met <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a>, <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>, of download een <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">installatiepakket</a>. templates/home.tmpl: Simply <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-binary/">run the binary</a> for your platform. Or ship Gitea with <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> or <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>, or get it <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/install-from-package/">packaged</a>. templates/org/settings/hook_new.tmpl: {{if eq .HookType "gogs"}} templates/org/settings/hook_new.tmpl: {{template "repo/settings/hook_gogs" .}} templates/repo/issue/labels.tmpl: href="https://discuss.gogs.io/t/how-to-use-predefined-label-templates/599"> templates/repo/settings/hook_gogs.tmpl:{{if eq .HookType "gogs"}} templates/repo/settings/hook_gogs.tmpl: <form class="ui form" action="{{.BaseLink}}/settings/hooks/gogs/{{if .PageIsSettingsHooksNew}}new{{else}}{{.Webhook.ID}}{{end}}" method="post"> templates/repo/settings/hook_list.tmpl: <a class="item" href="{{.BaseLink}}/settings/hooks/gogs/new"> templates/repo/settings/hook_new.tmpl: {{if eq .HookType "gogs"}} templates/repo/settings/hook_new.tmpl: {{template "repo/settings/hook_gogs" .}} vendor/github.com/Unknwon/cae/README.md:- [Gogs](https://github.com/gogits/gogs): self hosted Git service in the Go Programming Language. vendor/github.com/Unknwon/i18n/README.md:This package provides multiple-language options to improve user experience. Sites like [Go Walker](http://gowalker.org) and [gogs.io](http://gogs.io) are using this module to implement Chinese and English user interfaces. vendor/github.com/Unknwon/i18n/README.md:The format of locale files is very like INI format configuration file, which is basically key-value pairs. But this module has some improvements. Every language corresponding to a locale file, for example, under `conf/locale` folder of [gogsweb](https://github.com/gogits/gogsweb/tree/master/conf/locale), there are two files called `locale_en-US.ini` and `locale_zh-CN.ini`. vendor/github.com/Unknwon/i18n/README.md:The name and extensions of locale files can be anything, but we strongly recommend you to follow the style of gogsweb. vendor/github.com/go-xorm/xorm/README.md:* [Gogs](http://try.gogits.org) - [github.com/gogits/gogs](http://github.com/gogits/gogs) vendor/github.com/go-xorm/xorm/README_CN.md:* [Gogs](http://try.gogits.org) - [github.com/gogits/gogs](http://github.com/gogits/gogs) vendor/gopkg.in/macaron.v1/README.md:- [Gogs](https://gogs.io): A painless self-hosted Git Service ``` I know, the most of this are documentation Links, but there are a lot of other places...
Author
Owner

@Bwko commented on GitHub (Jan 23, 2017):

@MorphBonehunter Feel free to create a PR 😄

@Bwko commented on GitHub (Jan 23, 2017): @MorphBonehunter Feel free to create a PR :smile:
Author
Owner

@MorphBonehunter commented on GitHub (Jan 23, 2017):

Ok, i've done this for the log file name...as i'm not an programmer, i can not "fix" the other occurrences of "gogs" in the sources...

@MorphBonehunter commented on GitHub (Jan 23, 2017): Ok, i've done this for the log file name...as i'm not an programmer, i can not "fix" the other occurrences of "gogs" in the sources...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#266