← 返回
未分类

Coolify Deploy

Create, deploy, update, and troubleshoot Coolify applications with the official Coolify CLI. Use when user wants deploy via Coolify, app creation from GitHub...
使用官方 Coolify CLI 创建、部署、更新和排查 Coolify 应用。适用于用户通过 Coolify 部署或从 GitHub 创建应用。
heldinhow
未分类 clawhub v1.0.0 1 版本 99435 Key: 无需
★ 0
Stars
📥 176
下载
💾 0
安装
1
版本
#cli#coolify#deployment#docker#latest

概述

Coolify Deploy

Use the official coolify CLI first. Use direct Docker + Traefik only as fallback.

Core Rules

  1. Prefer CLI-managed apps so deployments appear in Coolify UI and support push-to-deploy.
  2. Use app create github for private GitHub repos and the correct GitHub App UUID.
  3. Verify both app status and HTTP 200 before calling a deploy finished.
  4. Use direct Docker only if Coolify creation is blocked.

When to Use

  • Creating a new Coolify app
  • Redeploying after code changes
  • Debugging unhealthy deployments
  • Adding env vars or checking deployment logs

Required Info

  • server_uuid
  • project_uuid
  • environment_name (usually production)
  • github_app_uuid for private repos
  • repo, branch, domain, exposed port

Preferred Workflow

1. Verify CLI + context

coolify context verify
coolify github list --format=json
coolify app list --format=json

2. Create app from private GitHub repo

coolify app create github \
  --server-uuid <server_uuid> \
  --project-uuid <project_uuid> \
  --environment-name production \
  --github-app-uuid <github_app_uuid> \
  --git-repository owner/repo \
  --git-branch main \
  --build-pack dockerfile \
  --ports-exposes 80 \
  --name <app-name> \
  --domains http://<app>.<ip>.sslip.io \
  --instant-deploy \
  --format=json

3. Add env vars when needed

coolify app env create <app-uuid> --key PORT --value 80 --format=json

4. Force redeploy

coolify deploy uuid <app-uuid> --force --format=json

5. Verify success

coolify app get <app-uuid> --format=json
coolify app deployments list <app-uuid> --format=json
curl -I http://<domain>

GitHub App Integration

List configured GitHub apps:

coolify github list --format=json

Use the UUID from this output in coolify app create github --github-app-uuid ....

If a repo is private and public creation fails, switch to github creation.

Common Issues

App is exited:unhealthy

Check deployment logs first:

coolify app deployments list <app-uuid> --format=json
coolify app deployments logs <app-uuid>

Then verify:

  • wrong GitHub App UUID
  • wrong Dockerfile path
  • missing env vars like PORT
  • build/runtime errors

Vite/Rollup native module error

Use Debian-based Node image:

FROM node:20-slim AS builder

Avoid Alpine for builds that need native Rollup modules.

nginx template expects ${PORT}

Set env var in Coolify:

coolify app env create <app-uuid> --key PORT --value 80 --format=json

Domain responds but UI still says running:unknown

Treat HTTP 200 + finished deployment as success. Coolify may still show running:unknown.

Fallback: Direct Docker Deploy

Only use when CLI-managed app creation is blocked.

See references/coolify-api.md for direct Docker/Traefik fallback patterns.

Quick Reference

coolify github list --format=json
coolify app create github --server-uuid <server> --project-uuid <project> --environment-name production --github-app-uuid <ghapp> --git-repository owner/repo --git-branch main --build-pack dockerfile --ports-exposes 80 --name myapp --domains http://myapp.<ip>.sslip.io --instant-deploy --format=json
coolify app env create <uuid> --key PORT --value 80 --format=json
coolify deploy uuid <uuid> --force --format=json
coolify app deployments list <uuid> --format=json
curl -I http://myapp.<ip>.sslip.io

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-20 06:18

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

ai-intelligence

OpenClaw Swarm

heldinhow
借助 OpenClaw Swarm 功能实现高级子智能体编排,支持上下文共享、状态管理、并行任务与完成通知。
★ 0 📥 991
data-analysis

Sr

heldinhow
开展分类多源研究,快速查询与深度学术分析相结合,优先使用可靠来源并定制报告格式。
★ 2 📥 871
ai-intelligence

Super Proactive V2

heldinhow
通过多层记忆、自主后台任务、任务队列和持久工作上下文,将AI智能体转变为主动合作伙伴,以实现更佳自主性。
★ 3 📥 1,060