0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-01-11 00:50:57 -05:00

Remove GoLand

This commit is contained in:
Antonin Delpeuch 2023-12-04 15:05:23 +01:00 committed by Earl Warren
parent b8e37e4237
commit eda0ec8443

View file

@ -30,15 +30,4 @@ Do you know how to configure it properly? Why not document that here?
Vim has [a Go plugin](https://github.com/fatih/vim-go) that can likely be used to work on Forgejo's code base.
Do you know how to configure it properly? Why not document that here?
## GoLand
Clicking the `Run Application` arrow on the function `func main()` in `/main.go`
can quickly start a debuggable Gitea instance.
The `Output Directory` in `Run/Debug Configuration` MUST be set to the
gitea project directory (which contains `main.go` and `go.mod`),
otherwise, the started instance's working directory is a GoLand's temporary directory
and prevents Gitea from loading dynamic resources (eg: templates) in a development environment.
To run unit tests with SQLite in GoLand, set `-tags sqlite,sqlite_unlock_notify`
in `Go tool arguments` of `Run/Debug Configuration`.