Method 1: Using deploy.sh Script (Recommended)
On-prem Deployment Guide (AWS)
Goal: Deploy all Hivel VM services using an automated script.
Prerequisites:
Database Migration completed successfully
.envfile configured with application user credentials (DB_USER and DB_PASSWORD)Docker and Docker Compose installed on VM
AWS ECR access configured (IAM role or AWS CLI credentials)
Deploy All Services
Application/System: EC2 VM (Docker)
On your EC2 VM, run:
cd /opt/hivel-onprem
# Deploy all VM services
./deploy.sh --vm(OR)
Deploy Specific Services
If you need to deploy only certain services instead of all:
Available deploy.sh Commands
Troubleshooting
Services fail to start: Check
.envfile has correct database credentials and RDS is reachableImage pull fails: Verify AWS ECR credentials and access
Health checks fail: Review logs with
./deploy.sh --logs <service-name>
See Troubleshooting for detailed solutions.
Last updated