-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
38 lines (29 loc) · 843 Bytes
/
Copy pathdeploy.sh
File metadata and controls
38 lines (29 loc) · 843 Bytes
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
#!/bin/bash
# Student Performance Dashboard Deployment Script
echo "🚀 Starting deployment process..."
# Check if we're in the right directory
if [ ! -f "package.json" ]; then
echo "❌ Error: package.json not found. Please run this script from the project root."
exit 1
fi
# Install dependencies
echo "📦 Installing dependencies..."
npm install
# Run linting
echo "🔍 Running ESLint..."
npm run lint
# Build the project
echo "🏗️ Building the project..."
npm run build
# Check if build was successful
if [ $? -eq 0 ]; then
echo "✅ Build successful!"
# Deploy to Vercel
echo "🚀 Deploying to Vercel..."
npx vercel --prod
echo "🎉 Deployment complete!"
echo "📊 Your dashboard is now live!"
else
echo "❌ Build failed. Please fix the errors and try again."
exit 1
fi