-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy_to_netlify.sh
More file actions
executable file
·33 lines (26 loc) · 981 Bytes
/
deploy_to_netlify.sh
File metadata and controls
executable file
·33 lines (26 loc) · 981 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
#!/bin/bash
# deploy_to_netlify.sh - Script to deploy to Netlify
echo "====================================================="
echo " Deploying AI Avatar Video to Netlify (Free Tier)"
echo "====================================================="
# Check if netlify-cli is installed
if ! command -v netlify &> /dev/null; then
echo "Installing netlify-cli..."
npm install -g netlify-cli
fi
# Create necessary directories if they don't exist
mkdir -p netlify/functions
# Login to Netlify (if not already logged in)
netlify status || netlify login
# Initialize Netlify site if not already done
if [ ! -f ".netlify/state.json" ]; then
echo "Initializing Netlify site..."
netlify init
fi
# Deploy to Netlify
echo "Deploying to Netlify..."
netlify deploy --prod
echo ""
echo "====================================================="
echo "Deployment complete. Your site is now live at the URL shown above."
echo "====================================================="