Skip to content

Commit

Permalink
add horaemeta compile guide (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 authored Nov 5, 2024
1 parent 6824e03 commit 66d2d83
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions content/en/docs/dev/compile_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -77,3 +79,19 @@ 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
```

0 comments on commit 66d2d83

Please sign in to comment.