Skip to content

Commit

Permalink
docs: studio deploy shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
OlaStenberg committed May 1, 2024
1 parent bfeb258 commit 382f888
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 48 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,19 @@ do
done
```


### Studio deployment example
```sh
declare -a networks=("ethereum" "avalanche" "arbitrum" "bsc" "celo" "fuse" "fantom" "gnosis" "harmony" "moonriver" "moonbeam" "optimism" "boba" "polygon" "linea" "base" "scroll" "polygon-zkevm")
SUBGRAPH=rp4
DIRECTORY=route-processor
for network in "${networks[@]}"
do
echo "BUILD $network $DIRECTORY"
NETWORK=$network pnpm exec turbo run build --scope=$DIRECTORY --force
echo "DEPLOYING TO $SUBGRAPH-$network"
cd subgraphs/$DIRECTORY/
pnpm graph deploy --studio $SUBGRAPH-$network -l v0.0.1
cd ../../
done
```
49 changes: 2 additions & 47 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion subgraphs/route-processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 sushiswap/route-processor-ethereum"
},
"devDependencies": {
"@graphprotocol/graph-cli": "^0.64.1",
"@graphprotocol/graph-cli": "^0.70.0",
"@graphprotocol/graph-ts": "^0.27.0",
"abi": "workspace:*",
"assemblyscript": "^0.19.20",
Expand Down

0 comments on commit 382f888

Please sign in to comment.