29 lines
1.8 KiB
Markdown
29 lines
1.8 KiB
Markdown
# Iteration Log — 2026-07-30 10:55
|
|
|
|
## Trigger & Request
|
|
- **Trigger**: Ad-hoc deploy request ("lakukan deploy ke domain demoplace")
|
|
- **Target**: Domain Production `https://demoplace.my.id`
|
|
|
|
## Tasks & Scope
|
|
- Fixed build error in `src/lib/actions/agents.ts` (duplicate variable `companyRoles` removed, split into `agentsMongo.ts`).
|
|
- Fixed device detail 500 API error in `backend/routes/deviceDetailsHandler.js` (removed invalid TypeScript syntax `: Promise<any[]>[]`).
|
|
- Refactored `DeviceDetailModal`, `AppDetailModal`, `AgentDetailModal`, and `Modal` to use `createPortal(..., document.body)` with `z-[9999]`, locking body overflow and preventing tab switching while modal is active.
|
|
- Upgraded backdrop blur to `bg-slate-950/80 backdrop-blur-md` with `backdropFilter: blur(12px)`.
|
|
- Verified TypeScript compilation: `0 errors`.
|
|
- Executed `npm run deploy` (`next build` + `scripts/deploy-sftp.js`).
|
|
|
|
## Steps & Commands Executed
|
|
1. `npx tsc --noEmit` — passed with 0 errors.
|
|
2. `npm run deploy`:
|
|
- Next.js 16.2.9 production build created in `.next/standalone`.
|
|
- Uploaded 34 items/directories via SFTP to `/home/adminbackend/web/demoplace.my.id/public_html` on `103.185.47.52:2222`.
|
|
- Ran SSH post-deploy commands to ensure upload directories permissions (`chmod 755`), installed backend/proxy dependencies via `npm ci --omit=dev`.
|
|
- Copied `.next/static` and `public` to `.next/standalone/.next/static`.
|
|
- Reloaded PM2 processes: `backone-proxy` (id: 0), `backone-backend` (id: 1), `backone-frontend` (id: 3).
|
|
3. Verified health check:
|
|
- `http://127.0.0.1:3001/api/health` → `{"ok":true,"message":"BackOne Backend berjalan (MongoDB read-only mode)","time":"2026-07-30T04:05:05.270Z"}`
|
|
|
|
## Outcome
|
|
- **Status**: SUCCESS 100%
|
|
- **Live Domain**: `https://demoplace.my.id`
|