Skip to content

Commit 09181e7

Browse files
authored
Update linux-docker.md
1 parent 4ecea8e commit 09181e7

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

docs/setup/operating-systems/linux-docker.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,59 @@ Complete the steps there and return back to this guide.
132132

133133
This creates a folder called Zeppelin and clones the bot code there.
134134

135+
### Needed and Optional Temporary Steps
136+
137+
Some of the steps are required, and some optional. Do both of the required steps, and the optional steps according to your need.
138+
139+
#### Using an Older Commit (required)
140+
141+
The latest commit (that was downloaded using the clone command above) does not currently run without errors. To get around this issue, a known working older commit will be used.
142+
143+
`git checkout b28ca17`
144+
145+
#### Rootrouter (required)
146+
147+
Needed for the bot to start correctly and the dashboard to load.
148+
149+
`nano Zeppelin/backend/src/api/start.ts`
150+
Press Ctrl-W and type `initAuth` and press Enter.
151+
152+
In each of the 4 lines:
153+
```
154+
initAuth(app);
155+
initGuildsAPI(app);
156+
initArchives(app);
157+
initDocs(app);
158+
```
159+
160+
Change `app` to `rootRouter` so that it looks like this:
161+
162+
```
163+
initAuth(rootRouter);
164+
initGuildsAPI(rootRouter);
165+
initArchives(rootRouter);
166+
initDocs(rootRouter);
167+
```
168+
169+
Press Ctrl-X, Y, and Enter to save and close.
170+
171+
#### Embeds in Tags
172+
173+
Tags in the current code are text only. In order to use embeds, some code needs to be changed.
174+
175+
`nano Zeppelin/backend/src/plugins/Tags/types.ts`
176+
177+
Look for `export const zTag = z.union([z.string(), zEmbedInput]);`
178+
179+
Change it to
180+
181+
```
182+
const zEmbeds = z.object({ embeds: z.array(zEmbedInput) });
183+
export const zTag = z.union([z.string(), zEmbeds]);
184+
```
185+
186+
Press Ctrl-X, Y, and Enter to save and close.
187+
135188
### Configure Zeppelin
136189

137190
1. Enter the Zeppelin folder: `cd Zeppelin`

0 commit comments

Comments
 (0)