diff --git a/Procfile b/Procfile index cc2081b..d8d30ed 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -release: yarn prepare remote && yarn build && yarn deploy:remote \ No newline at end of file +release: yarn prepare remote && yarn build:graph && yarn deploy:remote diff --git a/ReadMe.md b/ReadMe.md index 9eefb9b..84e9e58 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -30,7 +30,7 @@ http://subgraph.dev.enso.finance/subgraphs/name/ensofinance/enso-v1 4. Build subgraph ```bash - yarn build + yarn build:graph ``` 5. Deploy subgraph @@ -64,7 +64,7 @@ http://subgraph.dev.enso.finance/subgraphs/name/ensofinance/enso-v1 3. Build subgraph ```bash - yarn build + yarn build:graph ``` 4. Deploy subgraph diff --git a/package.json b/package.json index 9ffbac9..59492c5 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "version": "0.1.0", "scripts": { "prepare": "./scripts/build-manifest.sh", - "build": "graph codegen && graph build", + "build:graph": "graph codegen && graph build", "deploy:local": "graph create --node http://127.0.0.1:8020 ensofinance/enso-v1 && graph deploy --node http://127.0.0.1:8020/ --ipfs http://127.0.0.1:5001 ensofinance/enso-v1", "deploy:remote": "graph create --node http://$DOCKHERO_HOST:8020 ensofinance/enso-v1 && graph deploy --node http://$DOCKHERO_HOST:8020 --ipfs http://$DOCKHERO_HOST:5001 ensofinance/enso-v1", "deploy:kovan": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ ensofinance/enso-v1" diff --git a/scripts/build-manifest.sh b/scripts/build-manifest.sh index 8960d06..76bb4e3 100755 --- a/scripts/build-manifest.sh +++ b/scripts/build-manifest.sh @@ -2,7 +2,7 @@ NETWORK=$1 -if [ -z $NETWORK ]; then echo "Network not specified! (mainnet, kovan, local, ensonet, remote)"; exit 1; fi +if [ -z $NETWORK ]; then echo "Network not specified! (mainnet, kovan, local, ensonet, remote)"; exit 0; fi DATA=deployments.json