@fabioplunser/epd 0.5.17 → 0.5.19

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.
@@ -1,113 +0,0 @@
1
- # Operations & Troubleshooting
2
-
3
- Practical diagnosis, log inspection, lock release, and recovery procedures for `epd`.
4
-
5
- ---
6
-
7
- ## 1. Deployment Fails on Health Probe
8
-
9
- ### Symptom:
10
- ```
11
- ✖ Health check failed on 203.0.113.10: replica did not become healthy within 60s.
12
- Rolling back to live slot...
13
- ```
14
-
15
- ### Explanation:
16
- The new version was booted in the idle slot, but requests to `healthcheck.path` (default: `/`) did not return an HTTP status in `200-399` before timing out.
17
-
18
- ### Diagnostic Steps:
19
- 1. **Inspect container crash logs**:
20
- ```bash
21
- epd logs --service web --lines 100
22
- ```
23
- 2. **Verify application startup speed**:
24
- If your app takes 45 seconds to compile assets or connect to a database on cold start, increase the timeout in `epd.yml`:
25
- ```yaml
26
- healthcheck:
27
- path: /health
28
- timeout: 90
29
- delay: 5
30
- ```
31
- 3. **Verify port binding**:
32
- Ensure your app listens on the port configured under `servers.<service>.port` (e.g. `3000`), and binds to `0.0.0.0` (not `127.0.0.1` inside Docker).
33
-
34
- ---
35
-
36
- ## 2. Deployment Lock is Held
37
-
38
- ### Symptom:
39
- ```
40
- ✖ Another deployment is currently in progress (lock held by deployer-laptop at 14:22).
41
- ```
42
-
43
- ### Explanation:
44
- `epd` takes a lock on every server before deploying: a directory at `<remote_root>/apps/<app>/lock` (`/var/lib/epd/apps/<app>/lock` by default), created with `mkdir`, which is atomic. It holds who took it, the machine and process ID, the time, and what the deploy was doing. On Ctrl-C or SIGTERM, `epd` releases the locks it holds, including one it was in the middle of taking, but only where the lock still records this deploy as its holder. That release waits up to about 25 seconds for slow servers. A second Ctrl-C exits at once, which can leave the lock; `epd lock release` clears it. If your computer lost its connection, or the deploy was killed with `kill -9` mid-deployment, the lock stays until someone releases it.
45
-
46
- `epd lock status` flags a lock as probably stale when its process is no longer running on the same machine, or when it has been held for more than 6 hours.
47
-
48
- ### Solution:
49
- ```bash
50
- # Check lock details and whether it looks stale:
51
- epd lock status
52
-
53
- # Clear the lock once you have confirmed no deploy is running:
54
- epd lock release
55
- ```
56
-
57
- Only release a lock you are sure is stale. Releasing a live deploy's lock lets a second deploy run at the same time.
58
-
59
- ---
60
-
61
- ## 3. Investigating the Shared Traefik Proxy
62
-
63
- If domains are not resolving or returning `404 page not found`:
64
-
65
- ### Check Proxy Status:
66
- ```bash
67
- epd proxy status
68
- ```
69
-
70
- ### View Live Traefik Logs:
71
- ```bash
72
- epd proxy logs -f
73
- ```
74
-
75
- ### Inspect Generated Dynamic Routing YAML:
76
- ```bash
77
- epd proxy routes
78
- ```
79
- Verify that your domains, ports, and entrypoints match what you declared in `epd.yml`.
80
-
81
- ### Reboot Traefik:
82
- If Traefik needs a restart:
83
- ```bash
84
- epd proxy reboot
85
- ```
86
-
87
- ---
88
-
89
- ## 4. Disaster Recovery & Emergency Rollback
90
-
91
- To immediately revert to the previously working build:
92
-
93
- ```bash
94
- epd rollback
95
- ```
96
-
97
- To list all past deployments saved on the server:
98
- ```bash
99
- epd rollback --list
100
- ```
101
-
102
- And roll back to a specific tagged release:
103
- ```bash
104
- epd rollback <version>
105
- ```
106
-
107
- ---
108
-
109
- ## Next Steps
110
-
111
- - Explore the **[CLI Commands Reference](/reference/cli)**
112
- - Review the **[Complete epd.yml Schema](/reference/config)**
113
- - Read the **[GitHub Actions CI/CD Guide](/ci-cd)**
package/docs/guide.md DELETED
@@ -1,150 +0,0 @@
1
- # Complete Guide to EPD (Easy Project Deployer)
2
-
3
- `epd` is a zero-downtime deployment tool designed to deploy any application to one server or a fleet of servers over standard SSH. It combines zero-downtime blue/green deployments, automatic Let's Encrypt SSL, a shared reverse proxy (Traefik), and multi-host load balancing without requiring Kubernetes or complex container orchestration.
4
-
5
- ---
6
-
7
- ## Documentation Hub
8
-
9
- Explore the topics below for in-depth documentation and examples:
10
-
11
- <div class="guide-grid">
12
-
13
- <a href="/guide/getting-started" class="guide-card">
14
- <div class="guide-card-icon">🚀</div>
15
- <div class="guide-card-title">Getting Started (5 Min)</div>
16
- <div class="guide-card-desc">Step-by-step tutorial: initialize, configure, setup, and deploy your first application.</div>
17
- </a>
18
-
19
- <a href="/guide/installation" class="guide-card">
20
- <div class="guide-card-icon">📦</div>
21
- <div class="guide-card-title">Prerequisites & Installation</div>
22
- <div class="guide-card-desc">Zero-dependency installer, package manager commands, and automated SSH onboarding.</div>
23
- </a>
24
-
25
- <a href="/guide/architecture" class="guide-card">
26
- <div class="guide-card-icon">🏗️</div>
27
- <div class="guide-card-title">Architecture & Request Flow</div>
28
- <div class="guide-card-desc">How Traefik routes incoming traffic, filesystem layouts, and zero-daemon design.</div>
29
- </a>
30
-
31
- <a href="/guide/blue-green" class="guide-card">
32
- <div class="guide-card-icon">🔄</div>
33
- <div class="guide-card-title">Zero-Downtime Blue/Green</div>
34
- <div class="guide-card-desc">The deployment lifecycle: idle slot booting, health checks, atomic route switching, and draining.</div>
35
- </a>
36
-
37
- <a href="/guide/deployment-modes" class="guide-card">
38
- <div class="guide-card-icon">🐳</div>
39
- <div class="guide-card-title">Docker vs. Process Mode</div>
40
- <div class="guide-card-desc">Run containerized apps with Docker, or deploy plain Bun/Node/Python code via PM2.</div>
41
- </a>
42
-
43
- <a href="/guide/multi-site" class="guide-card">
44
- <div class="guide-card-icon">🌐</div>
45
- <div class="guide-card-title">Multi-Site on Single VPS</div>
46
- <div class="guide-card-desc">Host dozens of independent domains on a single host without port collisions.</div>
47
- </a>
48
-
49
- <a href="/guide/high-availability" class="guide-card">
50
- <div class="guide-card-icon">⚡</div>
51
- <div class="guide-card-title">High Availability & Clusters</div>
52
- <div class="guide-card-desc">Cross-host load balancing, private VPC network routing, and rolling rollouts.</div>
53
- </a>
54
-
55
- <a href="/guide/routing" class="guide-card">
56
- <div class="guide-card-icon">🔀</div>
57
- <div class="guide-card-title">Advanced Routing & Traefik</div>
58
- <div class="guide-card-desc">Path stripping, subdomains, basic auth, redirects, sticky sessions, and wildcard SSL.</div>
59
- </a>
60
-
61
- <a href="/guide/secrets" class="guide-card">
62
- <div class="guide-card-icon">🔒</div>
63
- <div class="guide-card-title">Secrets & Environments</div>
64
- <div class="guide-card-desc">Safe secret resolution, destination overlays (staging vs production), and chmod 0600 storage.</div>
65
- </a>
66
-
67
- <a href="/guide/accessories" class="guide-card">
68
- <div class="guide-card-icon">🗄️</div>
69
- <div class="guide-card-title">Accessories (Databases & Caches)</div>
70
- <div class="guide-card-desc">Persistent Postgres, Redis, and MinIO containers with volume management and web UIs.</div>
71
- </a>
72
-
73
- <a href="/ci-cd" class="guide-card">
74
- <div class="guide-card-icon">🤖</div>
75
- <div class="guide-card-title">GitHub Actions CI/CD</div>
76
- <div class="guide-card-desc">Automated continuous deployment on every git push with a 20-line workflow file.</div>
77
- </a>
78
-
79
- <a href="/hetzner-dns" class="guide-card">
80
- <div class="guide-card-icon">☁️</div>
81
- <div class="guide-card-title">Hetzner Cloud & DNS</div>
82
- <div class="guide-card-desc">Dynamic server targets, CLI provisioning, and Cloudflare/Hetzner DNS auto-sync.</div>
83
- </a>
84
-
85
- <a href="/reference/cli" class="guide-card">
86
- <div class="guide-card-icon">💻</div>
87
- <div class="guide-card-title">CLI Commands Reference</div>
88
- <div class="guide-card-desc">Full documentation of all 28 commands, options, and flags from epd doctor to epd top.</div>
89
- </a>
90
-
91
- <a href="/reference/config" class="guide-card">
92
- <div class="guide-card-icon">⚙️</div>
93
- <div class="guide-card-title">Configuration Reference (epd.yml)</div>
94
- <div class="guide-card-desc">Complete annotated YAML schema specification with every possible configuration key.</div>
95
- </a>
96
-
97
- <a href="/guide/troubleshooting" class="guide-card">
98
- <div class="guide-card-icon">🛠️</div>
99
- <div class="guide-card-title">Troubleshooting & Operations</div>
100
- <div class="guide-card-desc">Resolving deployment locks, diagnosing probe timeouts, and disaster recovery.</div>
101
- </a>
102
-
103
- </div>
104
-
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>
@@ -1,95 +0,0 @@
1
- # Hetzner Cloud & Multi-Provider DNS
2
-
3
- `epd` includes native integrations with **Hetzner Cloud** and automated DNS synchronization across **Cloudflare** and **Hetzner DNS**.
4
-
5
- ---
6
-
7
- ## 1. Multi-Provider DNS Automation
8
-
9
- `epd` can automatically manage and synchronize `A` and `AAAA` records for all configured service routes.
10
-
11
- ### Configuration (`epd.yml`)
12
-
13
- ```yaml
14
- # Unified DNS configuration
15
- dns:
16
- provider: cloudflare # or "hetzner"
17
- api_token: ${DNS_API_TOKEN}
18
- # zone_id: ... # Optional; auto-discovered from domain name
19
- proxied: true # Cloudflare CDN/proxy (default: true)
20
- ttl: 300 # Hetzner default: 300; Cloudflare: 1 (auto)
21
- auto_sync: true # Sync records automatically on setup and deploy
22
- ```
23
-
24
- *(Legacy `cloudflare:` configuration is also supported).*
25
-
26
- ### CLI Commands
27
-
28
- ```bash
29
- # Check status of domains vs server IPs
30
- epd dns status
31
-
32
- # Synchronize DNS records
33
- epd dns sync
34
-
35
- # Preview changes without modifying records
36
- epd dns sync --dry-run
37
-
38
- # Disable Cloudflare CDN proxy (DNS-only)
39
- epd dns sync --no-proxied
40
- ```
41
-
42
- ---
43
-
44
- ## 2. Hetzner Cloud Integration
45
-
46
- Manage and provision Hetzner Cloud servers directly with `epd hetzner`:
47
-
48
- ### CLI Commands
49
-
50
- ```bash
51
- # List all Hetzner servers in your project
52
- epd hetzner list
53
-
54
- # Inspect available server types, vCPUs, RAM, and pricing (EUR/mo)
55
- epd hetzner types
56
-
57
- # Inspect available datacenter locations
58
- epd hetzner locations
59
-
60
- # Create a new server (default: cx22 in fsn1 with ubuntu-24.04)
61
- epd hetzner create prod-web-1 --type cx22 --location fsn1
62
-
63
- # Create and automatically prepare with Docker, PM2, and Traefik:
64
- epd hetzner create prod-web-1 --setup
65
-
66
- # Delete a server
67
- epd hetzner delete prod-web-1
68
- ```
69
-
70
- ### Dynamic Target Servers in `epd.yml`
71
-
72
- Instead of static IP addresses, you can target servers by **name** or **label selector**:
73
-
74
- ```yaml
75
- hetzner:
76
- api_token: ${HETZNER_API_TOKEN}
77
-
78
- servers:
79
- web:
80
- hosts:
81
- - hetzner:prod-web-1 # Target single server by name
82
- - hetzner:label:app=web,env=prod # Target all servers matching labels
83
- port: 3000
84
- domains: [example.com]
85
- ```
86
-
87
- When deploying (`epd deploy` or `epd setup`), `epd` dynamically queries the Hetzner Cloud API to resolve targets to their live public IP addresses.
88
-
89
- ---
90
-
91
- ## Related Documentation
92
-
93
- - **[Getting Started Guide](/guide/getting-started)**: Deploy your first app in 5 minutes.
94
- - **[GitHub Actions CI/CD](/ci-cd)**: Automate deploys on every push.
95
- - **[CLI Reference](/reference/cli)**: Full command reference for `epd hetzner` and `epd dns`.
package/docs/index.md DELETED
@@ -1,44 +0,0 @@
1
- ---
2
- layout: home
3
-
4
- hero:
5
- name: "EPD"
6
- text: "Easy Project Deployer"
7
- tagline: "Blue/green deployments over SSH. Installs Docker, Traefik & SSL on any clean VPS in 60s."
8
- actions:
9
- - theme: brand
10
- text: 🚀 Get Started
11
- link: /guide/getting-started
12
- - theme: alt
13
- text: 📖 Documentation Hub
14
- link: /guide
15
- - theme: alt
16
- text: View on GitHub
17
- link: https://github.com/FabioPlunser/epd
18
- ---
19
-
20
- <DeployAnimation />
21
-
22
- ---
23
-
24
- ## 30-Second Quickstart
25
-
26
- ```bash
27
- cd my-project
28
-
29
- # 1. Initialize epd.yml (and optional starter Dockerfile / GitHub Action)
30
- epd init --ci
31
-
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
36
- epd setup
37
-
38
- # 4. Deploy future updates with zero downtime
39
- epd deploy
40
- ```
41
-
42
- ::: tip Ready to dive deeper?
43
- Follow the step-by-step **[Getting Started Guide](/guide/getting-started)** or read about **[Architecture & Concepts](/guide/architecture)**.
44
- :::
package/docs/public/CNAME DELETED
@@ -1 +0,0 @@
1
- epd.peppi.dev
@@ -1,52 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
2
- <defs>
3
- <linearGradient id="epd-bg" x1="0" y1="0" x2="64" y2="64" gradientUnits="userSpaceOnUse">
4
- <stop offset="0%" stop-color="#0f172a"/>
5
- <stop offset="100%" stop-color="#1e1b4b"/>
6
- </linearGradient>
7
- <linearGradient id="epd-rocket" x1="20" y1="10" x2="44" y2="42" gradientUnits="userSpaceOnUse">
8
- <stop offset="0%" stop-color="#38bdf8"/>
9
- <stop offset="50%" stop-color="#6366f1"/>
10
- <stop offset="100%" stop-color="#a855f7"/>
11
- </linearGradient>
12
- <linearGradient id="epd-flame" x1="32" y1="39" x2="32" y2="56" gradientUnits="userSpaceOnUse">
13
- <stop offset="0%" stop-color="#fbbf24"/>
14
- <stop offset="40%" stop-color="#ef4444"/>
15
- <stop offset="100%" stop-color="#a855f7" stop-opacity="0"/>
16
- </linearGradient>
17
- <linearGradient id="epd-ring" x1="16" y1="36" x2="48" y2="36" gradientUnits="userSpaceOnUse">
18
- <stop offset="0%" stop-color="#10b981"/>
19
- <stop offset="100%" stop-color="#06b6d4"/>
20
- </linearGradient>
21
- <filter id="epd-glow" x="-20%" y="-20%" width="140%" height="140%">
22
- <feGaussianBlur stdDeviation="1.5" result="blur"/>
23
- <feComposite in="SourceGraphic" in2="blur" operator="over"/>
24
- </filter>
25
- </defs>
26
-
27
- <!-- Background Squircle -->
28
- <rect x="2" y="2" width="60" height="60" rx="14" fill="url(#epd-bg)" stroke="#38bdf8" stroke-opacity="0.3" stroke-width="1.5"/>
29
-
30
- <!-- Zero-Downtime Orbit / Ring -->
31
- <ellipse cx="32" cy="38" rx="18" ry="5.5" fill="none" stroke="url(#epd-ring)" stroke-width="2" stroke-dasharray="3.5 2.5" opacity="0.85"/>
32
-
33
- <!-- Flame Exhaust -->
34
- <path d="M 28 41 C 28 41 32 55 32 55 C 32 55 36 41 36 41 C 34 43 30 43 28 41 Z" fill="url(#epd-flame)" filter="url(#epd-glow)"/>
35
- <path d="M 29.5 41 C 29.5 41 32 49 32 49 C 32 49 34.5 41 34.5 41 Z" fill="#fef08a"/>
36
-
37
- <!-- Rocket Left Fin -->
38
- <path d="M 24 33 L 17 41 C 17 41 21 43 26 39 Z" fill="#4338ca"/>
39
-
40
- <!-- Rocket Right Fin -->
41
- <path d="M 40 33 L 47 41 C 47 41 43 43 38 39 Z" fill="#4338ca"/>
42
-
43
- <!-- Main Rocket Fuselage -->
44
- <path d="M 32 9 C 26 17 24 27 24 39 C 27 41 37 41 40 39 C 40 27 38 17 32 9 Z" fill="url(#epd-rocket)"/>
45
-
46
- <!-- Center Porthole / Window -->
47
- <circle cx="32" cy="23" r="4.5" fill="#0f172a" stroke="#e0f2fe" stroke-width="1.5"/>
48
- <circle cx="33.5" cy="21.5" r="1.5" fill="#38bdf8"/>
49
-
50
- <!-- Top Shimmer -->
51
- <path d="M 32 9 C 30 13 28.5 17 28 19 C 30.5 18 33.5 18 36 19 C 35.5 17 34 13 32 9 Z" fill="#ffffff" fill-opacity="0.35"/>
52
- </svg>