DocsBuildDeploying Your Apps
Deploying Your Apps
Deploy with a single command. The platform handles schema sync, backend compilation, frontend publishing, and process supervision.
Deploy from the CLI
rootcx deploy
That's the entire deployment workflow. The CLI deploys to the Core instance you're signed in to. If you created your project on rootcx.com, your app is immediately live at https://<your-ref>.rootcx.com/apps/<appId>/.
You can also deploy from RootCX Studio by pressing Run.
What Happens on Deploy
The CLI executes a pipeline:
- Install dependencies -- runs
bun installif apackage.jsonis present in the project root. - Build frontend -- runs
bun run buildif asrc/directory exists. - Install manifest -- sends
manifest.jsonto the Core, which registers (or updates) the application, its entities, fields, permission keys, and actions. - Deploy backend -- the backend worker is uploaded and started under the Core's process supervisor. If a previous worker is running, it is replaced.
- Publish frontend -- uploads the built static assets to the Core, which serves them at
/apps/{appId}/.
Each step logs output in real time. If any step fails, the error is shown immediately.
How Apps Are Served
Apps built on RootCX can run in three ways:
| Mode | How it works |
|---|---|
| Web | The Core serves your built frontend at /apps/{appId}/. Accessible from any browser. |
| Dev (Studio) | During development, Studio runs a Vite dev server with hot reload in a native window. |
| Native app | Build a standalone .dmg, .msi, or .AppImage that bundles the frontend and auto-connects to the Core on launch. |
Deploy via API
You can also deploy without the CLI using the REST API:
# Deploy backend
cd backend && tar -czf ../app.tar.gz . && cd ..
curl -X POST https://<your-ref>.rootcx.com/api/v1/apps/crm/deploy \
-H "Authorization: Bearer $TOKEN" \
-F "archive=@app.tar.gz"
# Deploy frontend (after building with vite)
cd dist && tar -czf ../frontend.tar.gz . && cd ..
curl -X POST https://<your-ref>.rootcx.com/api/v1/apps/crm/frontend \
-H "Authorization: Bearer $TOKEN" \
-F "archive=@frontend.tar.gz"
Further Reading
- Getting Started -- first launch and your first deploy.
- Backend Development -- lifecycle hooks, RPC, and error handling.
- Self-Hosting -- run the Core on your own infrastructure.
- Core reference -- architecture and configuration of the Core daemon.