Skip to content

Commit ca5d47a

Browse files
author
OpenCode
committed
Add doc for hypernode-vedit
1 parent 41a90ab commit ca5d47a

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: Learn how to easily edit your Varnish VCL with hypernode-vedit.
5+
title: Editing Varnish VCL with hypernode-vedit
6+
---
7+
8+
# Editing Varnish VCL with hypernode-vedit
9+
10+
While we generally advise developers to make changes to the Varnish VCL in a persistent way (like `/data/web/app.vcl`), there are cases where you might want to make temporary changes directly to the active VCL. For example, when testing a change or debugging an issue.
11+
12+
The `hypernode-vedit` CLI tool allows you to edit the active Varnish VCL on your Hypernode. The command will store the active VCL in a temporary file, open it in the default editor, and then reload the edited VCL back into Varnish when you save and exit.
13+
14+
```console
15+
app@example-magweb-cmbl ~ $ hypernode-vedit
16+
Checking VCL syntax...
17+
Syntax OK.
18+
Apply this VCL now? [y/N] y
19+
VCL loaded and activated as 'vcl_1780641679'.
20+
```
21+
22+
In this example, you of course don't see the actual editing process, but after you save and exit the editor, the new VCL is loaded and activated in Varnish.

0 commit comments

Comments
 (0)