[public_html/misipintar/misipintar-1.0 (22)] [smknwon2@tirtonirmolo misipintar-1.0]$ bash deploy.sh
════════════════════════════════════════════════════════
MisiPintar — Deploy Script
Dir : /home/smknwon2/public_html/misipintar/misipintar-1.0
Date: Fri Jul 24 16:38:52 WIB 2026
════════════════════════════════════════════════════════
▶ [1/5] Git pull origin main ...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 20 (delta 10), reused 18 (delta 8), pack-reused 0 (from 0)
Unpacking objects: 100% (20/20), 1.03 MiB | 2.07 MiB/s, done.
From https://github.com/001753/misipintar-1.0
1bc24df..b228091 main -> origin/main
HEAD is now at b228091 Update attached image asset
✓ Kode berhasil diperbarui
✓ Symlink standalone/node_modules → root node_modules
⚠️ ══════════════════════════════════════════════════════════
⚠️ PERINGATAN: Standalone TIDAK sinkron dengan commit terbaru!
⚠️ HEAD saat ini : b22809141ec7
⚠️ Dibangun dari : a89cda3bc08e
⚠️ File kode yang belum di-build: 3 file
⚠️
⚠️ Artinya: ada perubahan kode yang belum di-build.
⚠️ Halaman produksi akan menampilkan versi LAMA.
⚠️
⚠️ Solusi — jalankan di Replit:
⚠️ npm run build (atau 2 step manual jika timeout)
⚠️ → commit & push ke GitHub
⚠️ → bash deploy.sh
⚠️ ══════════════════════════════════════════════════════════
▶ [2/5] Install Node.js dependencies ...
→ package.json tidak berubah — skip install (node_modules sudah up-to-date)
✓ Dependencies siap
▶ [3/5] Prisma generate ...
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (v6.19.3, engine=binary) to ./../../../nodevenv/public_html/misipintar/misipintar-1.0/22/lib/node_modules/@prisma/client in 466ms
Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints
✓ Prisma client siap
▶ [4/5] Prisma migrate deploy ...
◇ injected env (23) from .env // tip: ◈ secrets for agents [www.dotenvx.com]
═══════════════════════════════════════════════════════
Fix Migrasi DOKU — 20260723000000
═══════════════════════════════════════════════════════
✓ Terkoneksi ke database
▶ [1/3] Menambahkan enum values PayMethod ...
✓ MANDIRI_VA dan EWALLET tersedia
▶ [2/3] Menambahkan kolom dan index Invoice ...
✓ Kolom dan index berhasil ditambahkan
▶ [3/3] Menandai migration sebagai applied ...
✓ Record migration diperbarui: failed → applied
═══════════════════════════════════════════════════════
✅ Selesai! Langkah selanjutnya:
Jalankan satu dari berikut:
a) bash deploy.sh (deploy ulang lengkap)
b) ./node_modules/.bin/prisma migrate deploy
(hanya apply migration 20260723100000)
═══════════════════════════════════════════════════════
✓ Fix migrasi DOKU selesai
warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
For more information, see: https://pris.ly/prisma-config
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "smknwon2_misipintar_db", schema "public" at "127.0.0.1:5432"
8 migrations found in prisma/migrations
No pending migrations to apply.
✓ Migrasi database selesai
▶ [5/7] Seed plans & AppConfig ...
◇ injected env (23) from .env // tip: ⌘ custom filepath { path: '/custom/path/.env' }
⏭ Plan STARTER sudah ada — skip.
⏭ Plan PRO sudah ada — skip.
⏭ Plan EDUCATOR sudah ada — skip.
⏭ Plan SCHOOL sudah ada — skip.
⏭ AppConfig sudah ada (phaseMode: FREEMIUM) — skip.
ℹ️ Semua data sudah ada — tidak ada yang diubah.
▶ [6/7] Seed admin ...
◇ injected env (23) from .env // tip: ⌘ suppress logs { quiet: true }
⏭ Admin sudah ada — skip (tidak ada perubahan).
ID : 90d716ce-f9d8-4d28-b727-1d321053357a
Email: admin@misi-pintar.id
Role : SUPER_ADMIN
▶ [7/7] Pre-restart check & restart aplikasi ...
✓ NODE_ENV=production terverifikasi di .env
ℹ️ Proses Node.js aktif sebelum restart: 5
✓ Restart via tmp/restart.txt (Passenger reload pada request berikutnya)
ℹ️ Untuk immediate restart: cPanel → Node.js Selector → Restart App
════════════════════════════════════════════════════════
✅ Deploy selesai! Aplikasi sudah di-restart otomatis.
════════════════════════════════════════════════════════