#!/bin/bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm use node

echo "Node: $(node --version), NPM: $(npm --version)"

cd /data/ai/server
echo "安装依赖..."
npm install --production

echo "生成 Prisma Client..."
npx prisma generate

echo "完成!"
