Skip to content

Commit 4ff3b90

Browse files
authored
Update variable syntax note for clarity
Clarify variable syntax usage in different contexts. Recommended from bot
1 parent 1ea3c22 commit 4ff3b90

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs/eggs/creating-a-custom-egg.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,11 @@ java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}
165165
}
166166
```
167167

168-
:::Note
169-
The double curly bracket `{{VAR_NAME}}` is only used in the Startup variables, everywhere else it is `${VAR_NAME}`.
168+
:::note
169+
Variable syntax depends on the context:
170+
**Startup commands**: Use `{{VAR_NAME}}` (e.g., `{{SERVER_MEMORY}}`)
171+
**Configuration file parsers**: Use `{{server.environment.VAR_NAME}}` or `{{server.allocations.default.port}}`
172+
**Install scripts and shell environments**: Use `${VAR_NAME}`
170173
:::
171174

172175
**In Install Scripts:**

0 commit comments

Comments
 (0)