@fabioplunser/epd 0.5.12 → 0.5.14

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/docs/guide.md CHANGED
@@ -10,91 +10,91 @@ Explore the topics below for in-depth documentation and examples:
10
10
 
11
11
  <div class="guide-grid">
12
12
 
13
- <a href="/epd/guide/getting-started" class="guide-card">
13
+ <a href="/guide/getting-started" class="guide-card">
14
14
  <div class="guide-card-icon">🚀</div>
15
15
  <div class="guide-card-title">Getting Started (5 Min)</div>
16
16
  <div class="guide-card-desc">Step-by-step tutorial: initialize, configure, setup, and deploy your first application.</div>
17
17
  </a>
18
18
 
19
- <a href="/epd/guide/installation" class="guide-card">
19
+ <a href="/guide/installation" class="guide-card">
20
20
  <div class="guide-card-icon">📦</div>
21
21
  <div class="guide-card-title">Prerequisites & Installation</div>
22
- <div class="guide-card-desc">Local and remote server requirements, package manager commands, and SSH setup.</div>
22
+ <div class="guide-card-desc">Zero-dependency installer, package manager commands, and automated SSH onboarding.</div>
23
23
  </a>
24
24
 
25
- <a href="/epd/guide/architecture" class="guide-card">
25
+ <a href="/guide/architecture" class="guide-card">
26
26
  <div class="guide-card-icon">🏗️</div>
27
27
  <div class="guide-card-title">Architecture & Request Flow</div>
28
28
  <div class="guide-card-desc">How Traefik routes incoming traffic, filesystem layouts, and zero-daemon design.</div>
29
29
  </a>
30
30
 
31
- <a href="/epd/guide/blue-green" class="guide-card">
31
+ <a href="/guide/blue-green" class="guide-card">
32
32
  <div class="guide-card-icon">🔄</div>
33
33
  <div class="guide-card-title">Zero-Downtime Blue/Green</div>
34
34
  <div class="guide-card-desc">The deployment lifecycle: idle slot booting, health checks, atomic route switching, and draining.</div>
35
35
  </a>
36
36
 
37
- <a href="/epd/guide/deployment-modes" class="guide-card">
37
+ <a href="/guide/deployment-modes" class="guide-card">
38
38
  <div class="guide-card-icon">🐳</div>
39
39
  <div class="guide-card-title">Docker vs. Process Mode</div>
40
40
  <div class="guide-card-desc">Run containerized apps with Docker, or deploy plain Bun/Node/Python code via PM2.</div>
41
41
  </a>
42
42
 
43
- <a href="/epd/guide/multi-site" class="guide-card">
43
+ <a href="/guide/multi-site" class="guide-card">
44
44
  <div class="guide-card-icon">🌐</div>
45
45
  <div class="guide-card-title">Multi-Site on Single VPS</div>
46
46
  <div class="guide-card-desc">Host dozens of independent domains on a single host without port collisions.</div>
47
47
  </a>
48
48
 
49
- <a href="/epd/guide/high-availability" class="guide-card">
49
+ <a href="/guide/high-availability" class="guide-card">
50
50
  <div class="guide-card-icon">⚡</div>
51
51
  <div class="guide-card-title">High Availability & Clusters</div>
52
52
  <div class="guide-card-desc">Cross-host load balancing, private VPC network routing, and rolling rollouts.</div>
53
53
  </a>
54
54
 
55
- <a href="/epd/guide/routing" class="guide-card">
55
+ <a href="/guide/routing" class="guide-card">
56
56
  <div class="guide-card-icon">🔀</div>
57
57
  <div class="guide-card-title">Advanced Routing & Traefik</div>
58
58
  <div class="guide-card-desc">Path stripping, subdomains, basic auth, redirects, sticky sessions, and wildcard SSL.</div>
59
59
  </a>
60
60
 
61
- <a href="/epd/guide/secrets" class="guide-card">
61
+ <a href="/guide/secrets" class="guide-card">
62
62
  <div class="guide-card-icon">🔒</div>
63
63
  <div class="guide-card-title">Secrets & Environments</div>
64
64
  <div class="guide-card-desc">Safe secret resolution, destination overlays (staging vs production), and chmod 0600 storage.</div>
65
65
  </a>
66
66
 
67
- <a href="/epd/guide/accessories" class="guide-card">
67
+ <a href="/guide/accessories" class="guide-card">
68
68
  <div class="guide-card-icon">🗄️</div>
69
69
  <div class="guide-card-title">Accessories (Databases & Caches)</div>
70
70
  <div class="guide-card-desc">Persistent Postgres, Redis, and MinIO containers with volume management and web UIs.</div>
71
71
  </a>
72
72
 
73
- <a href="/epd/ci-cd" class="guide-card">
73
+ <a href="/ci-cd" class="guide-card">
74
74
  <div class="guide-card-icon">🤖</div>
75
75
  <div class="guide-card-title">GitHub Actions CI/CD</div>
76
76
  <div class="guide-card-desc">Automated continuous deployment on every git push with a 20-line workflow file.</div>
77
77
  </a>
78
78
 
79
- <a href="/epd/hetzner-dns" class="guide-card">
79
+ <a href="/hetzner-dns" class="guide-card">
80
80
  <div class="guide-card-icon">☁️</div>
81
81
  <div class="guide-card-title">Hetzner Cloud & DNS</div>
82
82
  <div class="guide-card-desc">Dynamic server targets, CLI provisioning, and Cloudflare/Hetzner DNS auto-sync.</div>
83
83
  </a>
84
84
 
85
- <a href="/epd/reference/cli" class="guide-card">
85
+ <a href="/reference/cli" class="guide-card">
86
86
  <div class="guide-card-icon">💻</div>
87
87
  <div class="guide-card-title">CLI Commands Reference</div>
88
- <div class="guide-card-desc">Full documentation of commands, options, and flags from epd init to epd remove.</div>
88
+ <div class="guide-card-desc">Full documentation of all 28 commands, options, and flags from epd doctor to epd top.</div>
89
89
  </a>
90
90
 
91
- <a href="/epd/reference/config" class="guide-card">
91
+ <a href="/reference/config" class="guide-card">
92
92
  <div class="guide-card-icon">⚙️</div>
93
93
  <div class="guide-card-title">Configuration Reference (epd.yml)</div>
94
94
  <div class="guide-card-desc">Complete annotated YAML schema specification with every possible configuration key.</div>
95
95
  </a>
96
96
 
97
- <a href="/epd/guide/troubleshooting" class="guide-card">
97
+ <a href="/guide/troubleshooting" class="guide-card">
98
98
  <div class="guide-card-icon">🛠️</div>
99
99
  <div class="guide-card-title">Troubleshooting & Operations</div>
100
100
  <div class="guide-card-desc">Resolving deployment locks, diagnosing probe timeouts, and disaster recovery.</div>
@@ -102,184 +102,49 @@ Explore the topics below for in-depth documentation and examples:
102
102
 
103
103
  </div>
104
104
 
105
- ---
106
-
107
- ## Guide Topics
108
-
109
- ### 1. Key Features & Architecture
110
- `epd` routes incoming traffic on ports 80/443 through a shared Traefik proxy and isolates each app's configuration.
111
-
112
- ```
113
- Internet (HTTP:80 / HTTPS:443)
114
- │
115
- ▼
116
- ┌─────────────────────────────────────────────────────────────┐
117
- │ SERVER (Host) │
118
- │ │
119
- │ ┌───────────────────────────────────────────────────────┐ │
120
- │ │ Shared Traefik Proxy (:80 / :443) │ │
121
- │ │ Automatically routes traffic based on dynamic YAML │ │
122
- │ └────────┬─────────────────────────────┬────────────────┘ │
123
- │ │ │ │
124
- │ ▼ ▼ │
125
- │ ┌─────────────────────┐ ┌────────────────────────┐ │
126
- │ │ App 1 (Blog) │ │ App 2 (Store) │ │
127
- │ │ Blue/Green replicas │ │ Blue/Green replicas │ │
128
- │ │ blog.example.com │ │ store.example.com │ │
129
- │ └─────────────────────┘ └────────────────────────┘ │
130
- └─────────────────────────────────────────────────────────────┘
131
- ```
132
-
133
- 👉 **[Read the complete Architecture Guide →](/guide/architecture)**
134
-
135
- ---
136
-
137
- ### 2. Prerequisites & Installation
138
- Install `epd` using Bun, NPM, or as a standalone Linux binary:
139
-
140
- ::: code-group
141
- ```bash [bun]
142
- bun install -g @fabioplunser/epd
143
- ```
144
- ```bash [npm]
145
- npm install -g @fabioplunser/epd
146
- ```
147
- ```bash [standalone binary]
148
- curl -fsSL https://github.com/FabioPlunser/epd/releases/latest/download/epd-linux-x64 -o /usr/local/bin/epd
149
- chmod +x /usr/local/bin/epd
150
- ```
151
- :::
152
-
153
- 👉 **[Read the full Installation Guide →](/guide/installation)**
154
-
155
- ---
156
-
157
- ### 3. Quick Start (5 Minutes)
158
- Get an app up and running in 4 simple commands:
159
-
160
- ```bash
161
- cd my-project
162
-
163
- # 1. Initialize epd.yml
164
- epd init
165
-
166
- # 2. Setup your servers (Docker/PM2, Traefik, networks) and run first deploy
167
- epd setup
168
-
169
- # 3. Deploy anytime with zero downtime
170
- epd deploy
171
- ```
172
-
173
- 👉 **[Follow the Step-by-Step Getting Started Walkthrough →](/guide/getting-started)**
174
-
175
- ---
176
-
177
- ### 4. Deployment Modes: Docker vs. Process
178
- Choose between containerized Docker builds and native PM2 process execution for ultra-low memory footprints:
179
-
180
- - **`mode: docker`**: Containerized replicas, isolated bridge network, optional registry.
181
- - **`mode: process`**: No Docker required on server. Uploads code via `rsync` and manages replicas with PM2.
182
-
183
- 👉 **[Read the Deployment Modes Guide →](/guide/deployment-modes)**
184
-
185
- ---
186
-
187
- ### 5. The Blue/Green Zero-Downtime Lifecycle
188
- Every deploy starts the new version in an alternate slot (`blue` vs `green`), verifies health probes, and performs an atomic route switch in Traefik before draining the old slot.
189
-
190
- ```bash
191
- # Instant rollback if needed
192
- epd rollback
193
- ```
194
-
195
- 👉 **[Read the Zero-Downtime Blue/Green Guide →](/guide/blue-green)**
196
-
197
- ---
198
-
199
- ### 6. Multi-Site Hosting on a Single VPS
200
- Deploy multiple completely different applications to the same server. Each app maintains its own dynamic route file under `/var/lib/epd/proxy/dynamic/<app>.yml` with independent Let's Encrypt SSL certificates.
201
-
202
- 👉 **[Read the Multi-Site Hosting Guide →](/guide/multi-site)**
203
-
204
- ---
205
-
206
- ### 7. High Availability & Multi-Server Clustering
207
- Deploy across multiple servers with rolling updates (`strategy: rolling`) and enable cross-host routing (`proxy.cross_host: true`) so requests are balanced across the whole fleet.
208
-
209
- 👉 **[Read the High Availability Guide →](/guide/high-availability)**
210
-
211
- ---
212
-
213
- ### 8. Advanced Routing & Traefik Features
214
- Configure paths, subdomains, prefix stripping, HTTP basic auth, redirects (301/302), custom headers, and sticky sessions:
215
-
216
- ```yaml
217
- servers:
218
- web:
219
- hosts: [203.0.113.10]
220
- port: 3000
221
- routes:
222
- - host: example.com
223
- - host: api.example.com
224
- port: 8080
225
- - host: example.com
226
- path: /admin
227
- strip_path: true
228
- basic_auth: ["admin:$apr1$xyz..."]
229
- ```
230
-
231
- 👉 **[Read the Advanced Routing Guide →](/guide/routing)**
232
-
233
- ---
234
-
235
- ### 9. Automated DNS & Hetzner Cloud
236
- Automatically synchronize A/AAAA records with **Cloudflare** or **Hetzner DNS**, and provision servers dynamically with `epd hetzner`:
237
-
238
- ```bash
239
- # Inspect & sync DNS
240
- epd dns status
241
- epd dns sync
242
-
243
- # Manage Hetzner Cloud servers
244
- epd hetzner list
245
- epd hetzner create prod-web-1 --setup
246
- ```
247
-
248
- 👉 **[Read the Hetzner Cloud & DNS Guide →](/hetzner-dns)**
249
-
250
- ---
251
-
252
- ### 10. Automated CI/CD with GitHub Actions
253
- Abstract your entire deployment into `epd.yml` and deploy automatically on every `git push`:
254
-
255
- ```yaml
256
- - name: Deploy with EPD
257
- run: npx @fabioplunser/epd deploy
258
- env:
259
- SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
260
- ```
261
-
262
- 👉 **[Read the GitHub Actions CI/CD Guide →](/ci-cd)**
263
-
264
- ---
265
-
266
- ### 11. Secrets & Environment Management
267
- Keep secrets safe with `0600` root permissions on the host server and support multi-environment overlays (`epd deploy -d staging`).
268
-
269
- 👉 **[Read the Secrets & Environment Guide →](/guide/secrets)**
270
-
271
- ---
272
-
273
- ### 12. Persistent Accessories
274
- Run stateful databases (Postgres, MySQL), caches (Redis), or storage (MinIO) alongside your apps with dedicated volumes and Traefik web routing.
275
-
276
- 👉 **[Read the Accessories Guide →](/guide/accessories)**
277
-
278
- ---
279
-
280
- ### 13. CLI Reference & Configuration Reference
281
- Look up every command and configuration option:
282
-
283
- 👉 **[View CLI Commands Reference →](/reference/cli)**
284
- 👉 **[View Configuration Schema Reference (`epd.yml`) →](/reference/config)**
285
- 👉 **[View Operations & Troubleshooting Guide →](/guide/troubleshooting)**
105
+ <style>
106
+ .guide-grid {
107
+ display: grid;
108
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
109
+ gap: 16px;
110
+ margin-top: 24px;
111
+ }
112
+
113
+ .guide-card {
114
+ display: flex;
115
+ flex-direction: column;
116
+ padding: 20px;
117
+ border-radius: 12px;
118
+ border: 1px solid var(--vp-c-divider);
119
+ background-color: var(--vp-c-bg-soft);
120
+ text-decoration: none !important;
121
+ transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
122
+ color: var(--vp-c-text-1) !important;
123
+ }
124
+
125
+ .guide-card:hover {
126
+ border-color: var(--vp-c-brand-1);
127
+ background-color: var(--vp-c-bg-elv);
128
+ transform: translateY(-2px);
129
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
130
+ }
131
+
132
+ .guide-card-icon {
133
+ font-size: 28px;
134
+ margin-bottom: 12px;
135
+ line-height: 1;
136
+ }
137
+
138
+ .guide-card-title {
139
+ font-size: 16px;
140
+ font-weight: 600;
141
+ color: var(--vp-c-text-1);
142
+ margin-bottom: 8px;
143
+ }
144
+
145
+ .guide-card-desc {
146
+ font-size: 13px;
147
+ line-height: 1.5;
148
+ color: var(--vp-c-text-2);
149
+ }
150
+ </style>
package/docs/index.md CHANGED
@@ -4,7 +4,7 @@ layout: home
4
4
  hero:
5
5
  name: "EPD"
6
6
  text: "Easy Project Deployer"
7
- tagline: "Zero-downtime deployments from terminal, GitHub Actions, or local CLI over standard SSH."
7
+ tagline: "Blue/green deployments over SSH. Installs Docker, Traefik & SSL on any clean VPS in 60s."
8
8
  actions:
9
9
  - theme: brand
10
10
  text: 🚀 Get Started
@@ -12,9 +12,6 @@ hero:
12
12
  - theme: alt
13
13
  text: 📖 Documentation Hub
14
14
  link: /guide
15
- - theme: alt
16
- text: 🤖 GitHub Actions CI/CD
17
- link: /ci-cd
18
15
  - theme: alt
19
16
  text: View on GitHub
20
17
  link: https://github.com/FabioPlunser/epd
@@ -24,33 +21,6 @@ hero:
24
21
 
25
22
  ---
26
23
 
27
- ## Quick Install
28
-
29
- ::: code-group
30
-
31
- ```bash [bun]
32
- bun install -g @fabioplunser/epd
33
- ```
34
-
35
- ```bash [npm]
36
- npm install -g @fabioplunser/epd
37
- ```
38
-
39
- ```bash [pnpm]
40
- pnpm add -g @fabioplunser/epd
41
- ```
42
-
43
- ```bash [npx (no install)]
44
- npx @fabioplunser/epd deploy
45
- ```
46
-
47
- ```bash [Standalone Binary (Linux)]
48
- curl -fsSL https://github.com/FabioPlunser/epd/releases/latest/download/epd-linux-x64 -o /usr/local/bin/epd
49
- chmod +x /usr/local/bin/epd
50
- ```
51
-
52
- :::
53
-
54
24
  ## 30-Second Quickstart
55
25
 
56
26
  ```bash
@@ -59,10 +29,13 @@ cd my-project
59
29
  # 1. Initialize epd.yml (and optional starter Dockerfile / GitHub Action)
60
30
  epd init --ci
61
31
 
62
- # 2. Setup your servers (Docker/PM2, Traefik, networks) and run first deploy
32
+ # 2. Run pre-flight health & environment checks
33
+ epd doctor
34
+
35
+ # 3. Setup your server (SSH keys, Docker, Traefik, SSL) and deploy in 1 command
63
36
  epd setup
64
37
 
65
- # 3. Deploy updates anytime with zero downtime
38
+ # 4. Deploy future updates with zero downtime
66
39
  epd deploy
67
40
  ```
68
41