cortex_status/deploy/deploy.sh
2026-03-21 17:42:45 +00:00

30 lines
605 B
Bash

#!/bin/bash
# Deploy script for Cortex Status Dashboard
# Run on cortex.hydrascale.net
set -euo pipefail
APP_DIR="/data/cortex_status"
cd "$APP_DIR"
echo "==> Fetching deps..."
mix deps.get --only prod
echo "==> Compiling..."
MIX_ENV=prod mix compile
echo "==> Building assets..."
MIX_ENV=prod mix assets.deploy
echo "==> Building release..."
MIX_ENV=prod mix release --overwrite
echo "==> Restarting service..."
systemctl restart cortex-status
echo "==> Checking status..."
sleep 3
systemctl status cortex-status --no-pager
echo ""
echo "✓ Deploy complete! Visit https://status.hydrascale.net"