nocobase-deployment
できること
このスキルは、NocoBase 3のアプリを本番のサーバーに移し、動作することを確かめるための手順を案内します。本番環境でNocoBaseのアプリを動かしたり更新したりする人向けです。
使う場面
- ✓NocoBase 3のアプリをサーバーにデプロイしたいとき。
- ✓NocoBaseのデプロイが失敗し、原因の診断が必要なとき。
- ✓稼働中のNocoBaseのアプリを更新またはロールバックしたいとき。
スキルのリンク
https://github.com/nocobase/nocobase/blob/v3-develop/packages/app/app-skills/skills/nocobase-deployment/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“NocoBaseのアプリをDockerのサーバーにデプロイして、データベースとファイルがまだ動くか確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、まずデプロイのモード、バージョン、データの場所を記録します。その後、アプリをビルドしてデプロイし、完了と言う前に、データベース、設定、動作、ファイルの保存を確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
NocoBase production deployment
Use this Skill to execute a complete deployment workflow. Read the application's AGENTS.md, the .agents/rules/ files it indexes for building and deployment, and README.MD before changing files or running stateful commands: the README documents this application's build targets, archive layout and configuration variables.
Do not treat a process being healthy as proof that the application is usable. A deployment is complete only after the database, configuration, application behavior, and persistence checks below have evidence.
Stop and identify the deployment
Before building or changing a server, record:
- The deployment mode: an App managed by an existing Studio, standalone Node.js managed by app-installer, standalone Node.js by hand, or standalone Docker.
- The source revision, application version, Node.js and pnpm versions, target CPU/OS/libc, and the destination host.
- Whether the destination uses the existing database and storage, a new database, or a restore. Business data is not included in
dist,dist.tar.gz, or a Docker image. - The application base path, public origin, database type, external services, reverse proxy, persistent directories, and service identity.
- Whether the requested action is a first install, an update, a migration, a restart, a rollback, or a recovery.
Do not run production writes, migrations, seeds, uploads, deployments, or destructive removal until the target and the user's authorization are explicit. If the target or data plan is unresolved, stop and ask for it.
Deploy to an existing Studio
When the user asks to deploy this application to an existing NocoBase Studio, read Deploy to Studio before building. It covers installing and signing in with the target Studio's nb-studio CLI, choosing an upload route, deploying and verifying the application. The application being deployed does not need its own business CLI.
Confirm the source application, target Studio, App ID and environment. A source directory, deployment directory and App ID can have different names; do not infer application identity from one of them. Follow the reference for Studio-managed configuration, storage and deployment; use the shared artifact and verification guidance below where applicable, not the standalone installation commands.
Deploying Studio itself to a server follows the standalone deployment workflow below.
Prepare the source and artifact
In the application project root, use the project's lockfile and declared pnpm version:
pnpm install --frozen-lockfile
pnpm typecheck
pnpm test
pnpm lint
Run the checks that the project actually defines; do not invent a test or lint command when it is absent. Build for the destination platform:
pnpm build --target linux-x64 --node-version 24 --tar
pnpm build creates the production dist tree and installs or retargets production dependencies for the selected platform. The build is not tied to a mount path: the client uses relative asset URLs by default, or an absolute CDN prefix when configured below, and the server serves it at the APP_BASE_PATH it runs with, so one archive can be mounted at /crm or at the origin root. --tar additionally creates storage/exports/dist.tar.gz, containing dist/ and config.example.yml, and the application's Dockerfile and Dockerfile.dockerignore when it has them; it does not contain the runtime configuration, database, uploads, or other business data. Extracting it produces exactly those paths rather than scattering server/ and node_modules/ into the directory you unpacked in. config.example.yml travels with it because a deployment has to write a config.yml before it can start, and the example is the only statement of what may go in it. Directories of executable shims are left out: a .bin entry points at a path on the machine that installed it, and a dangling one makes pnpm install in the extracted tree report a corrupt store rather than repair it. Without --tar no archive is produced, which is what you want when the build is only going to be run locally. Inspect the archive before transfer:
tar -tzf storage/exports/dist.tar.gz | head -30
For a direct server deployment, transfer the archive and extract it into the deployment root. Nothing needs installing there: pnpm build already ran pnpm install --prod inside dist/, and the archive carries the resulting `dist/node_mod
よくある質問
ビルドには私のビジネスデータが含まれますか?
いいえ。ビジネスデータはビルドのファイルにもDockerのイメージにも含まれないため、別に扱う必要があります。
どのホスティングの構成に対応していますか?
Studioで管理されるアプリ、独立したNode.jsのサーバー、独立したDockerのサーバーに対応しています。
本番環境はすぐに変わりますか?
このスキルは、まず詳細を記録するよう求め、本番の書き込みやマイグレーションには注意するよう説明しています。
詳細
作者による元の説明
Plan, build, deploy, verify, upgrade, and troubleshoot NocoBase 3 applications on an existing Studio or a standalone Node.js or Docker server. Use when an application must move from source to a deployment environment or when a deployment failure needs diagnosis.
repo: nocobase/nocobase
人気
- GitHubのスター
- 25k
- ランキング
- #10082
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
nocobase-app-development
25kエージェントが、NocoBase 3の完全なビジネスアプリケーションのために、ページ、ルーティング、データ、権限、テストを作れるよう支援します。
shadcn
25kエージェントが、公式のドキュメントとレジストリを使い、Webプロジェクトの shadcn/uiコンポーネントを見つけ、追加し、修正し、スタイルを整えられるよう支援します。
nocobase-app-plugin-development
25kエージェントが、既存のNocoBase 3アプリの中で、サーバー、クライアント、データベース、登録の部分を含むプラグインを作成し、保守できるよう支援します。
nocobase-app-upgrade
25kエージェントが、NocoBaseのアプリを新しいテンプレートのリリースにアップグレードし、テンプレートの変更を取り込みつつ、あなた自身の作業を保てるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。