Files
dbis_core/DEPLOYMENT_SUCCESS.md
2026-01-02 20:27:42 -08:00

3.3 KiB

DBIS Core Deployment - SUCCESS

Deployment Complete

All DBIS Core services have been successfully deployed, configured, and are running on Proxmox containers.

Fixes Applied

  1. Prisma Schema: Fixed all @map directives to @@map for correct Prisma syntax
  2. TypeScript Path Aliases: Added tsconfig-paths package and configured Node.js to use it for resolving @/ path aliases at runtime
  3. Systemd Services: Updated to use node -r tsconfig-paths/register to properly resolve path aliases
  4. Frontend Build: Completed frontend build and Nginx configuration

Service Status

PostgreSQL Primary (VMID 10100)

  • Status: Running
  • IP: 192.168.11.100
  • Port: 5432
  • Database: dbis_core
  • User: dbis

Redis Cache (VMID 10120)

  • Status: Running
  • IP: 192.168.11.120
  • Port: 6379

API Primary (VMID 10150)

  • Status: Running
  • IP: 192.168.11.150
  • Port: 3000
  • Service: dbis-api (systemd)

API Secondary (VMID 10151)

  • Status: Running
  • IP: 192.168.11.151
  • Port: 3000
  • Service: dbis-api (systemd)

Frontend (VMID 10130)

  • Status: Running
  • IP: 192.168.11.130
  • Port: 80 (HTTP)
  • Service: nginx

Service Endpoints

Service URL Status
PostgreSQL 192.168.11.100:5432 Running
Redis 192.168.11.120:6379 Running
API Primary http://192.168.11.150:3000 Running
API Secondary http://192.168.11.151:3000 Running
Frontend http://192.168.11.130 Running
API Health http://192.168.11.150:3000/health Available

Database Credentials

⚠️ IMPORTANT: Save these credentials securely!

  • Database: dbis_core
  • User: dbis
  • Password: 8cba649443f97436db43b34ab2c0e75b5cf15611bef9c099cee6fb22cc3d7771
  • Host: 192.168.11.100
  • Port: 5432

Quick Verification

# Test API health
curl http://192.168.11.150:3000/health

# Test Frontend
curl http://192.168.11.130

# Check service status
ssh root@192.168.11.10 "cd /root/proxmox/dbis_core/scripts/management && ./status.sh"

Management Commands

# Service status
ssh root@192.168.11.10 "cd /root/proxmox/dbis_core/scripts/management && ./status.sh"

# View API logs
ssh root@192.168.11.10 "pct exec 10150 -- journalctl -u dbis-api -f"

# View Nginx logs
ssh root@192.168.11.10 "pct exec 10130 -- tail -f /var/log/nginx/error.log"

# Restart services
ssh root@192.168.11.10 "cd /root/proxmox/dbis_core/scripts/management && ./restart-services.sh"

Technical Details

TypeScript Path Alias Resolution

The application uses TypeScript path aliases (@/ paths) which don't work natively in Node.js. Fixed by:

  1. Installing tsconfig-paths package
  2. Using node -r tsconfig-paths/register in systemd ExecStart to register path aliases before running the application

Systemd Service Configuration

ExecStart=/usr/local/bin/node -r tsconfig-paths/register dist/index.js

This ensures TypeScript path aliases are resolved correctly at runtime.

Deployment Complete! 🎉

All services are deployed, configured, and running successfully!

The DBIS Core Banking System is now fully operational at: