diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-25 02:12:11 +0800 |
---|---|---|
committer | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-25 02:12:11 +0800 |
commit | 85f94676baaf9af40ced0f20468d1adb8856ade3 (patch) | |
tree | b99a99765e09f0f4c2d00a1fa841a0a18a350bb1 /docs/local_development.md | |
parent | 52ffb67b33c1823933948c027b6f3605fb42ea7c (diff) |
docs: improve local development guide
[CI SKIP]
Diffstat (limited to 'docs/local_development.md')
-rw-r--r-- | docs/local_development.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/local_development.md b/docs/local_development.md index 7d0860d8..1cf2f85d 100644 --- a/docs/local_development.md +++ b/docs/local_development.md @@ -23,7 +23,7 @@ Gogs is built and runs as a single binary and meant to be cross platform. Theref Gogs has the following dependencies: - [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) (v1.8.3 or higher) -- [Go](https://golang.org/doc/install) (v1.12 or higher) +- [Go](https://golang.org/doc/install) (v1.13 or higher) - [Less.js](http://lesscss.org/usage/#command-line-usage-installing) - [GNU Make](https://www.gnu.org/software/make/) - Database upon your choice (pick one, we choose PostgreSQL in this document): @@ -75,8 +75,9 @@ Gogs has the following dependencies: ```bash sudo apt install -y make git-all postgresql postgresql-contrib golang-go nodejs - go get -u github.com/kevinburke/go-bindata/... npm install -g less + # Watch out, it is not github.com/go-bindata/go-bindata! + go get -u github.com/kevinburke/go-bindata/... ``` 1. Configure startup services: @@ -121,6 +122,8 @@ Generally, you don't need a full clone, so set `--depth` to `10`: git clone --depth 10 https://github.com/gogs/gogs.git ``` +**NOTE** The repository has Go Modules enabled, please clone to somewhere outside of your `$GOPATH`. + ## Step 4: Configure database settings Create a `custom/conf/app.ini` file inside the repository and put the following configuration (everything under `custom/` directory is used to override default files and is excluded by `.gitignore`): |