Skip to content

Operations Overview

This section contains operational setup guides for running and maintaining the platform infrastructure.


Setup Guides


Common Operations

Deploying the Backend

bash
# Normal redeploy (zero-downtime)
pnpm deploy:backend

# First deploy or ecosystem config changed
pnpm deploy:backend:fresh

Checking Backend Health

bash
# SSH into EC2
pm2 status                          # PM2 process status
pm2 logs prod-logistech --lines 50  # Recent logs

Restarting nginx

bash
sudo systemctl restart nginx
sudo nginx -t                        # Test nginx config before restart

SSL Certificate Renewal

Certbot auto-renews certificates. To check or manually renew:

bash
sudo certbot renew --dry-run   # Test renewal
sudo certbot renew             # Force renew

Database Backups

MongoDB backups should be scheduled via mongodump or Atlas automated backups:

bash
mongodump --uri="$MONGODB_URI" --out=/backups/$(date +%Y%m%d)

Intecog Logistech IoT Monitoring Platform