Skip to content

Commit

Permalink
csv export docker reference (#485)
Browse files Browse the repository at this point in the history
* csv export docker reference

* Update docs/run_publish/references.md

---------

Co-authored-by: James Bayly <[email protected]>
  • Loading branch information
bgodlin and jamesbayly authored Mar 7, 2024
1 parent 265dd90 commit 5eefb86
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/run_publish/references.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ Data Mutations:
subql-node --csv-out-dir=/csv-dir/ -f subql-project.ts
```

::: tip Note
When running your project using Docker, it is important to consider your current volume mounts. If you initiated your project using a template, it is likely that you already have Docker volumes mounted, typically defined in a `docker-compose.yaml` file as follows:

```
- ./:/app
```

To enable the export to function properly with `csv-dir` as the target folder, follow these steps:

1. Create an empty folder named `csv-dir` in the root directory of your project.
2. Specify `app` in the path of the parameter, so that the complete parameter appears as follows: `- --csv-out-dir=/app/csv-dir`

:::

### --db-schema

**String** - This flag allows you to provide a name for the project database schema. Upon providing a new name, a new database schema is created with the configured name and block indexing starts.
Expand Down

0 comments on commit 5eefb86

Please sign in to comment.