Skip to content

Commit 7c58557

Browse files
shenkeyaodailinsubjam
authored andcommitted
Add a devnet cleanup script (#261)
* Update log level * Add cleanup script * Remove unnecessary commands (cherry picked from commit dc40b6c)
1 parent 9220e0c commit 7c58557

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

README_ESPRESSO.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,17 @@ docker compose down -v
353353
docker volume prune -a
354354
```
355355

356+
* If encountering an issue related to outdated deployment files, remove those files before
357+
restarting.
358+
* Go to the scripts directory.
359+
```console
360+
cd espresso/scripts
361+
```
362+
* Run the script.
363+
```console
364+
./cleanup.sh
365+
```
366+
356367
* If you have changed OP contracts, you will have to start the devnet fresh and re-generate
357368
the genesis allocations by running `prepare-allocs.sh`
358369

@@ -447,12 +458,6 @@ OP_RPC_CAFF=http://caff.example.com:4545 \
447458
```console
448459
cd espresso/scripts
449460
```
450-
* Allow access to scripts.
451-
```console
452-
chmod +x startup.sh
453-
chmod +x logs.sh
454-
chmod +x shutdown.sh
455-
```
456461

457462
### Prebuild Everything and Start All Services
458463
Note that `l2-genesis` is expected to take around 2 minutes.

espresso/scripts/cleanup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Run this on `espresso/scripts`
2+
rm -rf ../deployment/*

0 commit comments

Comments
 (0)