Skip to content

Commit

Permalink
Merge pull request #988 from input-output-hk/artur/update-building-ru…
Browse files Browse the repository at this point in the history
…nning-docs-with-cabal

Add cabal build instruction to docs
  • Loading branch information
erikd committed Jan 9, 2022
2 parents 951232a + 25d1cdc commit 0706086
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/building-running.md
Expand Up @@ -34,6 +34,30 @@ nix-build -A scripts.mainnet.node -o mainnet-node-local
```

### Set up and run the db-sync node

- with cabal:

```
git clone https://github.com/input-output-hk/cardano-db-sync
cd cardano-db-sync
cabal build cardano-db-sync
PGPASSFILE=config/pgpass-mainnet cabal run cardano-db-sync -- \
--config config/mainnet-config.yaml \
--socket-path ../cardano-node/state-node-mainnet/node.socket \
--state-dir ledger-state/mainnet \
--schema-dir schema/
```

to find `cardano-db-sync` executable location use:

```
find . -name cardano-db-sync -executable -type f
./dist-newstyle/build/x86_64-linux/ghc-8.10.4/cardano-db-sync-12.0.0/build/cardano-db-sync/cardano-db-sync
```


- with nix:

```
git clone https://github.com/input-output-hk/cardano-db-sync
cd cardano-db-sync
Expand Down

0 comments on commit 0706086

Please sign in to comment.