mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 03:26:59 +01:00
Remove the entire Medusa integration that was replaced by native database queries for product management. This includes the medusa-backend directory, all Medusa API routes (cart, orders, products, regions, health), Medusa client library and React hooks, StripeCheckout component, publish service, Docker services (medusa, medusa_db, medusa_redis), CI/CD workflow, and all Medusa references from config files, scripts, and docker-compose. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
955 B
Bash
Executable File
34 lines
955 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# =============================================================================
|
|
# RevampIT - Stop All Services
|
|
# =============================================================================
|
|
|
|
set -e
|
|
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m'
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
|
|
|
echo -e "${BLUE}[RevampIT]${NC} Stopping all services..."
|
|
|
|
# Stop Next.js
|
|
if [ -f "$PROJECT_DIR/.nextjs.pid" ]; then
|
|
PID=$(cat "$PROJECT_DIR/.nextjs.pid")
|
|
kill $PID 2>/dev/null || true
|
|
rm "$PROJECT_DIR/.nextjs.pid"
|
|
fi
|
|
pkill -f "next dev" 2>/dev/null || true
|
|
|
|
# Optionally stop Docker (uncomment if needed)
|
|
# cd "$PROJECT_DIR"
|
|
# docker compose down
|
|
|
|
echo -e "${GREEN}✓${NC} All application services stopped"
|
|
echo -e "${BLUE}Note:${NC} Docker containers (databases, Meilisearch) are still running"
|
|
echo -e " Run 'docker compose down' to stop infrastructure"
|