⚠️ This is test/experimental code for API integration testing. Do not use in production. Includes: - WellNuo API integration (dashboard, patient context) - Playwright tests for API verification - WebView component for dashboard embedding - API documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
494 B
Bash
Executable File
23 lines
494 B
Bash
Executable File
#!/bin/bash
|
|
# Deploy WellNuo backend to production
|
|
|
|
SERVER="root@91.98.205.156"
|
|
REMOTE_PATH="/var/www/wellnuo"
|
|
LOCAL_PATH="$(dirname "$0")"
|
|
|
|
echo "🚀 Deploying WellNuo backend..."
|
|
|
|
# Sync files
|
|
rsync -avz --delete \
|
|
--exclude 'node_modules' \
|
|
--exclude '.DS_Store' \
|
|
--exclude 'deploy.sh' \
|
|
-e "ssh" \
|
|
"$LOCAL_PATH/" "$SERVER:$REMOTE_PATH/"
|
|
|
|
echo "📦 Restarting PM2..."
|
|
ssh $SERVER "pm2 restart wellnuo"
|
|
|
|
echo "✅ Deploy complete!"
|
|
echo "🌐 https://wellnuo.smartlaunchhub.com"
|