#!/bin/bash
# 在服务器上安装运行时依赖
set -e
echo "Installing server dependencies..."
cd "$(dirname "$0")/../platform/server" && npm ci --production

echo "Installing template dependencies (build service needs vite)..."
cd "$(dirname "$0")/../templates/coloring" && npm ci --production=false
echo "Done."
