Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)25k · #10108

nocobase-app-installer

Skill này làm gì

Skill này cài đặt một ứng dụng NocoBase 3 đã được build bằng công cụ app-installer, trên máy cục bộ hoặc qua SSH. Skill dành cho người vận hành NocoBase trong môi trường thực tế và cần nâng cấp hoặc khôi phục.

Khi nào nên dùng

  • ✓Khi bạn muốn triển khai một ứng dụng NocoBase 3 đã build lên máy chủ thực tế.
  • ✓Khi bạn cần nâng cấp hoặc khôi phục một bản cài đặt NocoBase hiện có.
  • ✓Khi bạn cần kiểm tra bản cài đặt NocoBase có chạy đúng không.

Liên kết skill

https://github.com/nocobase/nocobase/blob/v3-develop/skills/nocobase-app-installer/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/nocobase/nocobase/blob/v3-develop/skills/nocobase-app-installer/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể cài đặt gói NocoBase đã build lên máy chủ Linux ngoại tuyến của tôi và kiểm tra xem nó có khởi động không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI chạy trình cài đặt với gói triển khai. Mỗi bản phát hành được cài riêng, còn cấu hình, lưu trữ và bản sao lưu được giữ lại qua các lần nâng cấp. Sau đó nó kiểm tra kết quả.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Install and run NocoBase 3 with app-installer

This Skill installs NocoBase that is already built — nothing on the machine is developed, only run. @nocobase/app-installer puts each release under releases/<version>_<build time>/app and runs it under pm2; config.yml, app.env, storage/, backups/ and logs/ sit beside the releases and survive every upgrade. It installs from --archive, a deployment archive built in an application project. This Skill decides when to use it and how to act on what it reports; --help is the reference for every flag.

Run it

Run the installer on the machine where the Agent works, with the registry named and --json. For SSH deployment this is the local machine, not the server:

npx --yes --registry="${NOCOBASE_REGISTRY:-https://registry.npmjs.org}" @nocobase/app-installer@beta <command> … --json

Use @beta for the published installer; do not fall back to an untagged invocation or @latest. Preserve an explicit version required for an existing installation or requested by the user, and use the snapshot tag when testing an unreleased local registry.

NocoBase 3 publishes to the public npm registry. NOCOBASE_REGISTRY is set only when someone points the shell at another registry, such as an unreleased snapshot; the installer records the registry in installer.json and suggests commands from it. The --yes before the package is npx's own: it downloads the installer without asking. The installer's --yes, after the command, is a separate answer that only the user gives.

Use the published beta channel unless the user specifies an exact version. An unreleased snapshot registry tags its packages latest; use that tag only when testing such a registry. Check --help before deploying to confirm the selected version supports deploy and --ssh.

--json prints one document on stdout and progress on stderr, in the same envelope as pnpm nocobase … --json. Read the document, not the exit code alone: ok, status (success, success-noop or failure), result, and on failure error.code, error.message, error.suggestions and error.details. Each suggestion has a message and, where there is one, a run of { command, args }: an executable and its arguments, run as given without a shell. app-installer 0.1.0-beta.1 and earlier, which a suggested command pinned to that version still runs, print status error and run as one shell line that runs as printed, so tell success from failure by ok.

Exit Meaning
0 Done, or nothing to do (success-noop).
1 Failed; an application that was already running was not touched.
2 Invalid usage, a failed precheck, or a confirmation still needed; nothing was written.
3 An upgrade failed after switching and was rolled back; the previous release is running.
4 Rolling back failed too; the application is down.

Choose the route

A project is source code someone changes, created by nocobase-create-app and developed locally; an installation is a built NocoBase that only runs, made by this Skill, usually in production. Settle the route before installing anything:

The user asks to Route
Install, create or try NocoBase, to develop with The nocobase-create-app Skill
Deploy an application to production or a server This Skill, --archive, from the application's deployment archive
Run it with Docker The application's nocobase-deployment Skill and Docker configuration
  • "Install NocoBase on this server" with no project and no archive is not settled yet. Running the user's own application means creating it locally with `nocobase-create-a
Câu hỏi thường gặp

Nó có build ứng dụng không?

Không. Nó chỉ cài đặt và chạy một ứng dụng đã được build sẵn.

Tệp của tôi có được giữ lại khi nâng cấp không?

Có. Skill nói rằng cấu hình, lưu trữ, bản sao lưu và nhật ký được giữ lại qua các lần nâng cấp.

Nó có chạy được trên máy chủ ngoại tuyến không?

Có. Nó được thiết kế cho các máy chủ Linux ngoại tuyến.

Chi tiết

Mô tả gốc của tác giả

Deploy a built NocoBase 3 application locally or over SSH to an offline Linux server, for production, with `@nocobase/app-installer` from the deployment archive `pnpm build --tar` writes, then upgrade, roll back and check it. Use when the user asks to deploy an application to production or a server, to upgrade or roll back such an installation, or when the directory holds an `installer.json` written by app-installer. Not for creating a project to develop, which is the `nocobase-create-app` Skill.

repo: nocobase/nocobase

Độ phổ biến

Sao GitHub
25k
Vị trí xếp hạng
#10108
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự