nocobase-deployment
Ce qu’il fait
Cette compétence guide les étapes qui permettent de mettre en ligne une application NocoBase 3 sur un serveur et de vérifier qu'elle fonctionne. Elle s'adresse aux personnes qui exploitent ou mettent à jour une application NocoBase en production.
Quand l’utiliser
- ✓Quand vous voulez déployer une application NocoBase 3 sur un serveur.
- ✓Quand un déploiement NocoBase échoue et doit être diagnostiqué.
- ✓Quand vous devez mettre à jour ou revenir en arrière sur une application NocoBase en fonctionnement.
Lien du skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/app/app-skills/skills/nocobase-deployment/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Pouvez-vous déployer mon application NocoBase sur mon serveur Docker et vérifier que la base de données et les fichiers fonctionnent toujours ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'IA enregistre d'abord le mode de déploiement, les versions et l'emplacement des données. Elle construit et déploie ensuite l'application, puis vérifie la base de données, les réglages, le comportement et le stockage des fichiers avant de considérer le travail comme terminé.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Le build inclut-il mes données métier ?
Non. Les données métier ne font pas partie des fichiers de build ni de l'image Docker ; elles doivent donc être traitées séparément.
Quelles configurations d'hébergement sont couvertes ?
Une application gérée par Studio, un serveur Node.js autonome ou un serveur Docker autonome.
Modifie-t-elle la production immédiatement ?
La compétence indique d'enregistrer d'abord les détails et de prendre des précautions pour les écritures en production et les migrations.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 25k
- Position au classement
- #10082
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
nocobase-app-development
25kAide votre agent à construire les pages, les routes, les données, les permissions et les tests d'une application métier NocoBase 3 complète.
shadcn
25kAide votre agent à trouver, ajouter, corriger et styliser des composants shadcn/ui dans un projet web, en utilisant leur documentation officielle et leurs registres.
nocobase-app-plugin-development
25kAide votre agent à créer et maintenir des extensions NocoBase 3 dans une application existante, y compris les parties serveur, client, base de données et enregistrement.
nocobase-app-upgrade
25kAide votre agent à mettre à niveau une application NocoBase vers une version plus récente du modèle, en intégrant les changements du modèle tout en conservant votre propre travail.
Skills similaires
openclaw-update
394kAide votre agent à mettre à jour une passerelle OpenClaw existante, en choisissant la méthode adaptée à son installation et en gardant votre session active.
diagnose-gateway
394kAide votre agent à trouver pourquoi votre passerelle OpenClaw échoue, en vérifiant les paramètres, les canaux et les ports sans rien modifier.
crabbox-apps
394kAide votre agent à ouvrir et exécuter une application sur une machine cloud temporaire, puis à afficher sa vue dans le panneau latéral de votre chat.