diff options
author | silverwind <me@silverwind.io> | 2020-09-05 02:55:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 20:55:06 -0400 |
commit | e1535c74cc494dce85ea5c2e8a25665bed444217 (patch) | |
tree | ae4ccd99c77c3f6a7437e789a582b8a6fc89fa67 /docs | |
parent | 9837b598fcfb01bf01140309dd3d01452fbfb704 (diff) | |
download | gitea-e1535c74cc494dce85ea5c2e8a25665bed444217.tar.gz gitea-e1535c74cc494dce85ea5c2e8a25665bed444217.zip |
Add 'make watch' (#12636)
* Add 'make watch'
This combines frontend and backend watch into a single command that runs
them in parallel on on SIGINT terminates both.
Termination is not super-clean but I guess it does not have to.
* move to tools/, trap more signals, remove gnu-specific flag
* simplify
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/doc/advanced/hacking-on-gitea.en-us.md | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/docs/content/doc/advanced/hacking-on-gitea.en-us.md b/docs/content/doc/advanced/hacking-on-gitea.en-us.md index 0c8ab419e4..1d2702a5e8 100644 --- a/docs/content/doc/advanced/hacking-on-gitea.en-us.md +++ b/docs/content/doc/advanced/hacking-on-gitea.en-us.md @@ -94,14 +94,10 @@ See `make help` for all available `make` targets. Also see [`.drone.yml`](https: ## Building continuously -Both the `frontend` and `backend` targets can be ran continuously when source files change: +To run and continously rebuild when source files change: ````bash -# in your first terminal -make watch-backend - -# in your second terminal -make watch-frontend +make watch ```` On macOS, watching all backend source files may hit the default open files limit which can be increased via `ulimit -n 12288` for the current shell or in your shell startup file for all future shells. |