mnemo_cards/mnemo_cards_web_v2/deploy.sh
2025-11-19 21:13:33 +03:00

25 lines
730 B
Bash
Executable file

#!/bin/bash
# Wrapper script for deploying mnemo_cards_web_v2
# This script uses the centralized deployment scripts from tools/deploy/web-app/
set -e
# Get the root directory
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
DEPLOY_SCRIPTS_DIR="$ROOT_DIR/tools/deploy/web-app"
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Check if centralized deploy scripts exist
if [ ! -f "$DEPLOY_SCRIPTS_DIR/deploy.sh" ]; then
echo "❌ Error: Centralized deploy scripts not found at $DEPLOY_SCRIPTS_DIR"
exit 1
fi
# Change to project directory (required for build to work)
cd "$PROJECT_DIR"
# Source config and run deploy
source "$DEPLOY_SCRIPTS_DIR/config.sh"
source "$DEPLOY_SCRIPTS_DIR/deploy.sh"