Deployment System
Installation
SKILL.md
Deployment System Guide
This guide details the lifecycle of a deployment in Docklift, from source code to running container.
Core Services
projects.ts: Manages Project CRUD and triggers deployments.deployments.ts: Manages deployment history, logs, and streaming deploy/stop/restart/redeploy.docker.ts: Wrapper fordockerodeto control containers and stream compose operations.compose.ts: Generatesdocker-compose.ymlfiles dynamically (scans Dockerfiles, detects ports).git.ts: Handles cloning (git clone) and pulling (fetch + hard reset + clean) repositories.
Deployment Lifecycle
- Trigger:
- Manual (UI button) or Webhook (GitHub push).
POST /api/deployments/:projectId/deploy.