@fabioplunser/epd 0.5.14 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -5
- package/dist/cli.js +1703 -738
- package/docs/ci-cd.md +1 -1
- package/docs/guide/installation.md +12 -1
- package/docs/guide/secrets.md +26 -3
- package/docs/guide/troubleshooting.md +7 -3
- package/docs/reference/cli.md +4 -2
- package/docs/reference/config.md +44 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,6 +40,15 @@ Installs the self-contained, pre-compiled standalone binary for Linux (`x64` / `
|
|
|
40
40
|
curl -fsSL https://raw.githubusercontent.com/FabioPlunser/epd/main/install.sh | bash
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
On Windows x64, install from PowerShell without administrator access:
|
|
44
|
+
|
|
45
|
+
```powershell
|
|
46
|
+
irm https://raw.githubusercontent.com/FabioPlunser/epd/main/install.ps1 | iex
|
|
47
|
+
epd --help
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The installer verifies the release SHA256 checksum and adds `%LOCALAPPDATA%\epd\bin` to your user PATH. Install Git for Windows for Git Bash shell hooks and transfers, plus the Windows OpenSSH client. Docker mode uses Docker Desktop with Linux containers. Process mode additionally requires `rsync` (use WSL2 if it is unavailable). Target servers and the self-hosted dashboard stack run on Linux.
|
|
51
|
+
|
|
43
52
|
### Option 2: Global CLI via Bun or NPM
|
|
44
53
|
|
|
45
54
|
```bash
|
|
@@ -98,7 +107,26 @@ build → ship → start new replicas → health check → switch routes
|
|
|
98
107
|
3. Waits for every new replica to pass its health check. If any fails, the new
|
|
99
108
|
replicas are removed and the old version keeps serving. Nothing is switched.
|
|
100
109
|
4. Writes the routing file, waits for the proxy to pick it up, then retires the
|
|
101
|
-
old replicas after a drain period.
|
|
110
|
+
old replicas after a drain period. With `cross_host: true` every proxy is
|
|
111
|
+
synced to the new replicas first, so old replicas are only retired once no
|
|
112
|
+
proxy routes to them.
|
|
113
|
+
|
|
114
|
+
Once the routes point at the new version, a failure never stops it. epd saves
|
|
115
|
+
the new state (retrying if the write fails) and reports cleanup problems, such as
|
|
116
|
+
a failed image prune or an old replica that cannot be stopped, as warnings.
|
|
117
|
+
|
|
118
|
+
If the route switch fails, epd writes the old routes back and stops the new
|
|
119
|
+
replicas, and the saved state is unchanged. If that restore also fails, epd reads
|
|
120
|
+
the proxy's route file to see which version it routes to:
|
|
121
|
+
|
|
122
|
+
- Routes point at the new version: the new replicas are kept and the new state is
|
|
123
|
+
saved, as on a normal switch. The deploy reports the error.
|
|
124
|
+
- Routes point at the old version: the new replicas are stopped and nothing is
|
|
125
|
+
saved.
|
|
126
|
+
- Neither can be confirmed (the file is unreadable, or names both): both versions
|
|
127
|
+
keep running, nothing is saved or retired, and the deploy fails with the route
|
|
128
|
+
file to inspect on that server. Re-run `epd deploy` only after checking which
|
|
129
|
+
version that file routes to.
|
|
102
130
|
|
|
103
131
|
The old version is never stopped before the new one is proven and routed, which
|
|
104
132
|
is what makes the deploy zero-downtime. There is an end-to-end test that hammers
|
|
@@ -120,7 +148,7 @@ image: ghcr.io/me/blog # docker mode only
|
|
|
120
148
|
registry: # omit entirely to ship images over SSH instead
|
|
121
149
|
server: ghcr.io
|
|
122
150
|
username: me
|
|
123
|
-
password: ${GITHUB_TOKEN}
|
|
151
|
+
password: GITHUB_TOKEN # name of the env var holding the token (${GITHUB_TOKEN} also works). Never paste the token itself: epd rejects it
|
|
124
152
|
|
|
125
153
|
build:
|
|
126
154
|
dockerfile: Dockerfile
|
|
@@ -260,8 +288,9 @@ proxy:
|
|
|
260
288
|
|
|
261
289
|
`env.clear` is written into the config; `env.secret` lists variable *names*
|
|
262
290
|
whose values are read from your shell or a `.env` file at deploy time and
|
|
263
|
-
written to the server as a `0600` file. Secrets never end up in the repo
|
|
264
|
-
|
|
291
|
+
written to the server as a `0600` file. Secrets never end up in the repo or in
|
|
292
|
+
your shell history. On the server, each file is removed as soon as nothing reads
|
|
293
|
+
it any more; `docs/guide/secrets.md` lists which files stay and why.
|
|
265
294
|
|
|
266
295
|
`.env`, `.env.local` and `.env.<destination>` next to `epd.yml` are loaded
|
|
267
296
|
automatically. Real environment variables always win.
|
|
@@ -555,7 +584,7 @@ machines, use the DNS challenge.
|
|
|
555
584
|
**`ports NNNNN-NNNNN are already reserved`.** Two apps hashed to the same port
|
|
556
585
|
block. Set `port_base:` in one of them to any free multiple of 256.
|
|
557
586
|
|
|
558
|
-
**A deploy was interrupted and now everything is locked.** `epd lock release`.
|
|
587
|
+
**A deploy was interrupted and now everything is locked.** Run `epd lock status`: it flags a lock whose deploy process is gone or that has been held for over six hours. Once you are sure no deploy is running, `epd lock release`.
|
|
559
588
|
|
|
560
589
|
---
|
|
561
590
|
|