feat: add startup script (#33)

* feat: add startup script

Signed-off-by: Arthurim <arthurbdauphine@gmail.com>

* feat: update doc

Signed-off-by: Arthurim <arthurbdauphine@gmail.com>

Signed-off-by: Arthurim <arthurbdauphine@gmail.com>
This commit is contained in:
Eru Ilúvatar 2023-01-24 18:13:08 +01:00 committed by GitHub
parent bb6d267460
commit 3a58c82327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

@ -66,6 +66,13 @@ And load prices data
./mev prices fetch-all ./mev prices fetch-all
``` ```
Alternatively, once you have created a new cluster, add your RPC_URL into `scripts/startup.sh` and run:
```
bash scripts/startup.sh
```
## Usage ## Usage
### Inspect a single block ### Inspect a single block

10
scripts/startup.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# bash script to launch the
# usage: bash scripts/startup.sh
# this assumes you already ran: kind create cluster
# Do not forget to add your RPC URL below
export RPC_URL=""
tilt down &&
tilt up &&
./mev exec alembic upgrade head &&
./mev prices fetch-all