-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
Β·43 lines (35 loc) Β· 1 KB
/
Copy pathdeploy.sh
File metadata and controls
executable file
Β·43 lines (35 loc) Β· 1 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
#!/bin/bash
# CineFlix Direct Deployment Script
# Run this script to deploy directly to Vercel
echo "π¬ CineFlix - Direct Vercel Deployment"
echo "======================================"
echo ""
# Check if Vercel CLI is installed
if ! command -v vercel &> /dev/null; then
echo "π¦ Installing Vercel CLI..."
npm install -g vercel
echo ""
fi
# Install dependencies
echo "π¦ Installing dependencies..."
npm install
echo ""
# Build the project
echo "π¨ Building project..."
npm run build
echo ""
# Deploy to Vercel
echo "π Deploying to Vercel..."
echo ""
echo "β οΈ IMPORTANT: When prompted, add these environment variables:"
echo " VITE_TMDB_API_KEY = [your TMDB API key]"
echo " VITE_TMDB_BASE_URL = https://api.themoviedb.org/3"
echo " VITE_TMDB_IMAGE_BASE_URL = https://image.tmdb.org/t/p"
echo ""
echo "π Get your TMDB API key from: https://www.themoviedb.org/settings/api"
echo ""
# Deploy
vercel --prod
echo ""
echo "π Deployment complete!"
echo "Your site should be live now!"