> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kazzle.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploying

> Deploy apps to production and local devices.

# Deploying

Kazzle apps dapat di-deploy ke hosting Kazzle atau diinstal pada komputer perangkat lokal.

## Remote deploy

Deploy bersifat asinkron: halaman app, AI, atau `kazzle deploy` dari checkout antri pekerjaan deploy di sisi server. `kazzle deploy` mengunggah checkout Anda; deploy runner membangun dan mengirimnya.

Untuk setiap komponen:

1. **UI components** dibangun menjadi Docker image yang menjalankan `runtime.prod.build` jika diatur, jika tidak `bun run build`
2. **Process components** menjalankan perintah `runtime.prod.command` mereka dari `kazzle.config.ts` - deploy gagal jika tidak ada
3. Setiap komponen mendapat image dan deployment sendiri
4. URL produksi ditetapkan

Picu deploy dari halaman app atau melalui AI:

```
Deploy my app
```

## Production URLs

App yang di-deploy mendapat URL seperti `https://kazzle-{appId}.kazzle.app`. App dengan beberapa process components mendapat satu URL per komponen. App publik dapat diakses oleh siapa saja dengan URL. App privat memerlukan autentikasi Kazzle.

## Runtime commands in production

| Phase                  | Command                                                         | When                                   |
| ---------------------- | --------------------------------------------------------------- | -------------------------------------- |
| `runtime.prod.build`   | Production build command, atau `bun run build` jika dihilangkan | Selama deploy UI components            |
| `runtime.prod.command` | Production start command di `kazzle.config.ts`                  | Di produksi, memulai process component |

Production commands harus berupa perintah bare (misalnya `bun server/index.ts`) - runtime yang di-deploy menyuntikkan `PORT`, `HOST`, dan secrets secara langsung. Lihat halaman [Kazzle CLI](/apps/cli) untuk pemisahan dev/production.

## Local install

App juga dapat berjalan pada komputer perangkat lokal (mesin lokal Anda) melalui daemon Kazzle. Perintah `runtime.dev.command` memulai app dalam mode development.
