godcrm/scripts/restart-dev.sh
GOD CRM Release f89e074dd1
Some checks failed
CI / Lint / Typecheck / Test / Build (push) Has been cancelled
CI / PostgreSQL Integration Tests (push) Has been cancelled
GOD CRM — public scrubbed snapshot
Governed substrate for autonomous agents: scoped identity (passports),
audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
2026-08-10 04:01:45 +03:00

26 lines
615 B
Bash
Executable file

#!/bin/bash
# Restart DEV server - for developers and agents
# Usage: ./scripts/restart-dev.sh
set -e
echo "🔄 Restarting DEV server..."
# Restart service
sudo systemctl restart business-crm-dev
# Wait for startup
sleep 2
# Check health
HEALTH=$(curl -s http://localhost:5001/api/health 2>/dev/null || echo '{"status":"error"}')
if echo "$HEALTH" | grep -q '"status":"ok"'; then
echo "✅ DEV server is UP"
echo " URL: https://devcrm.hltrn.cc"
echo " Health: $HEALTH"
else
echo "❌ DEV server FAILED to start"
echo " Check logs: journalctl -u business-crm-dev -n 50 --no-pager"
exit 1
fi