Skip to content

Commit

Permalink
update docs (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa authored Sep 12, 2023
1 parent 93e7288 commit 6cb00fa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
This repository includes index program.

- [Subql](./subql)
- [Thegraph](./thegraph)


15 changes: 4 additions & 11 deletions subql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@ You can create follow [template](packages/template) project. and then add your
code to `src/handler/logic` directory. last add your logic class to
special [chain handler](packages/template/src/handler/chain/impls.ts).

### How to deploy (to Subquery hosted server)
### How to deploy

Please create new commit to main branch. and the commit message format like this
You can manually run [release ci](https://github.com/darwinia-network/indexer/actions/workflows/subql-release.yml)
when build success, you can see ipfs cid for last action.

```
[deploy-subql] mmr darwinia pangolin | apps all
```

this means you want to deploy project `mmr` and `apps`

the `mmr` project will be deployed with chain `darwinia` and `pangolin`
the `apps` project will be deployed to all chains, it's defined by
[subql-project-chain.json](../.maintain/subql-project-chain.json)
then copy ipfs cid to ansible playbooks project.
9 changes: 9 additions & 0 deletions thegraph/ormpipe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@ npm run deploy:studio \
-- ormpipe-arbitrum-goerli subgraph-arbitrum-goerli.yaml
```

### deploy to hosted server (by Darwinia)

```
npm run deploy:darwinia \
-- --access-token=<ACCESS_TOKEN> \
ormpipe-pangolin \
subgraph-pangolin.yaml
```

0 comments on commit 6cb00fa

Please sign in to comment.