Skip to content

Commit 0d0e990

Browse files
Generate rollkit.toml as a separate step
1 parent b205985 commit 0d0e990

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tutorials/gm-world.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,31 @@ To make it simple we will download a repository with a `gm-world` rollup that ha
5656
```bash
5757
cd $HOME && bash -c "$(curl -sSL https://rollkit.dev/install-gm-rollup.sh)"
5858
```
59+
## 🧰 Configuring Your Rollup {#configuring-your-rollup}
60+
61+
Generate rollkit.toml file by running:
62+
63+
```bash
64+
rollkit toml init
65+
```
66+
67+
The output should be similar to this:
68+
```
69+
Found rollup entrypoint: /root/gm/cmd/gmd/main.go, adding to rollkit.toml
70+
Could not find rollup config under gm. Please put the chain.config_dir in the rollkit.toml file manually.
71+
Initialized rollkit.toml file in the current directory.
72+
```
73+
74+
From the output, you can see that the rollup entrypoint is `~/gm/cmd/gmd/main.go`.
75+
76+
Open the rollkit.toml file and under the `[chain]` section set `config_dir` to the `./.gm` directory. Your rollkit.toml file should look like this:
77+
78+
```bash
79+
entrypoint = "./cmd/gmd/main.go"
80+
81+
[chain]
82+
config_dir = "./.gm"
83+
```
5984

6085
## 🚀 Starting your rollup {#start-your-rollup}
6186

0 commit comments

Comments
 (0)