From 1378036d5a4b569b960dd0c93d4d4a08255dff35 Mon Sep 17 00:00:00 2001 From: jiacai2050 Date: Tue, 5 Nov 2024 16:30:28 +0800 Subject: [PATCH 1/2] add horaemeta compile --- content/en/docs/dev/compile_run.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/content/en/docs/dev/compile_run.md b/content/en/docs/dev/compile_run.md index 449f571b..0156af21 100644 --- a/content/en/docs/dev/compile_run.md +++ b/content/en/docs/dev/compile_run.md @@ -43,13 +43,15 @@ source $HOME/.cargo/env # Compile and Run -Compile HoraeDB by the following command: +## horaedb-server + +Compile horaedb-server by the following command in project root directory: ``` cargo build ``` -Then you can run HoraeDB using the default configuration file provided in the codebase. +Then you can run it using the default configuration file provided in the codebase. ```bash ./target/debug/horaedb-server --config ./docs/minimal.toml @@ -77,3 +79,18 @@ To fix those, you should adjust ulimit as follows: ulimit -n unlimited ulimit -f unlimited ``` + +## horaemeta-server + +Building horaemeta-server require Golang version >= 1.21, please [install it](https://go.dev/doc/install) before compile. + +Then in `horaemeta` directory, execute: +```bash +go build -o bin/horaemeta-server ./cmd/horaemeta-server/main.go +``` + +Then you can run horaemeta-server like this: + +```bash +bin/horaemeta-server +``` From 833b41eccddcb939d1b0ce7c1bf3eef6c49b6b52 Mon Sep 17 00:00:00 2001 From: jiacai2050 Date: Tue, 5 Nov 2024 16:33:34 +0800 Subject: [PATCH 2/2] fix lint --- content/en/docs/dev/compile_run.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/docs/dev/compile_run.md b/content/en/docs/dev/compile_run.md index 0156af21..b944f462 100644 --- a/content/en/docs/dev/compile_run.md +++ b/content/en/docs/dev/compile_run.md @@ -85,6 +85,7 @@ ulimit -f unlimited Building horaemeta-server require Golang version >= 1.21, please [install it](https://go.dev/doc/install) before compile. Then in `horaemeta` directory, execute: + ```bash go build -o bin/horaemeta-server ./cmd/horaemeta-server/main.go ```