3.3 KiB
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
- Prisma Schema: Fixed all
@mapdirectives to@@mapfor correct Prisma syntax - TypeScript Path Aliases: Added
tsconfig-pathspackage and configured Node.js to use it for resolving@/path aliases at runtime - Systemd Services: Updated to use
node -r tsconfig-paths/registerto properly resolve path aliases - 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:
- Installing
tsconfig-pathspackage - Using
node -r tsconfig-paths/registerin 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:
- Frontend: http://192.168.11.130
- API: http://192.168.11.150:3000 (Primary), http://192.168.11.151:3000 (Secondary)