-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·71 lines (64 loc) · 1.67 KB
/
deploy.sh
File metadata and controls
executable file
·71 lines (64 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# DoubleVision - Quick Deploy Script
set -e # Exit on error
echo "🚀 DoubleVision Beta Deployment"
echo "================================"
echo ""
# Check if on main branch
BRANCH=$(git branch --show-current)
if [ "$BRANCH" != "main" ]; then
echo "⚠️ You're on branch '$BRANCH', not 'main'"
read -p "Continue anyway? (y/N) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
fi
# Check for uncommitted changes
if ! git diff-index --quiet HEAD --; then
echo "⚠️ You have uncommitted changes"
git status --short
echo ""
read -p "Commit changes first? (Y/n) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Nn]$ ]]; then
read -p "Enter commit message: " COMMIT_MSG
git add -A
git commit -m "$COMMIT_MSG"
fi
fi
# Push to GitHub
echo ""
echo "📤 Pushing to GitHub..."
git push origin "$BRANCH"
echo "✅ Pushed to GitHub"
# Check if Vercel CLI is installed
if ! command -v vercel &> /dev/null; then
echo ""
echo "⚠️ Vercel CLI not found"
echo "Install with: npm i -g vercel"
echo ""
read -p "Continue without deploying? (Y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Nn]$ ]]; then
exit 1
fi
exit 0
fi
# Deploy to Vercel
echo ""
read -p "Deploy to Vercel now? (Y/n) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Nn]$ ]]; then
echo ""
echo "🌐 Deploying to Vercel..."
vercel --prod
echo ""
echo "✅ Deployment complete!"
echo ""
echo "Next steps:"
echo "1. Check the deployment URL provided above"
echo "2. Test all features (login, upload, review)"
echo "3. Monitor logs with: vercel logs --follow"
echo "4. Share with beta testers!"
fi