mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
43 lines
1.0 KiB
Markdown
43 lines
1.0 KiB
Markdown
# Coordinator
|
|
|
|
[](https://scroll-tech/coordinator/actions)
|
|
[](https://codecov.io/gh/scroll-tech/coordinator)
|
|
|
|
This repo contains the Scroll coordinator.
|
|
|
|
## Build
|
|
|
|
```bash
|
|
make clean
|
|
make coordinator
|
|
```
|
|
|
|
## db operation
|
|
|
|
* init, show version, rollback, check status db
|
|
|
|
```bash
|
|
# DB_DSN: db data source name
|
|
export DB_DSN="postgres://admin:123456@localhost/test_db?sslmode=disable"
|
|
# DB_DRIVER: db driver name
|
|
export DB_DRIVER="postgres"
|
|
|
|
# TEST_DB_DRIVER, TEST_DB_DSN: It is required when executing db test cases
|
|
export TEST_DB_DRIVER="postgres"
|
|
export TEST_DB_DSN="postgres://admin:123456@localhost/test_db?sslmode=disable"
|
|
```
|
|
|
|
## Start
|
|
|
|
* use default ports and config.json
|
|
|
|
```bash
|
|
./build/bin/coordinator --http
|
|
```
|
|
|
|
* use specified ports and config.json
|
|
|
|
```bash
|
|
./build/bin/coordinator --config ./config.json --http --http.addr localhost --http.port 8390
|
|
```
|