-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·47 lines (44 loc) · 1.37 KB
/
deploy.sh
File metadata and controls
executable file
·47 lines (44 loc) · 1.37 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
#!/bin/bash
# ERROR_403 Landing Page - Quick Deploy Script
echo "ERROR_403: DEPLOYMENT INITIATED"
echo "================================"
echo ""
# Check for deployment tool
if command -v surge &> /dev/null; then
echo "✓ Surge detected - deploying to surge.sh..."
surge . error403.surge.sh
elif command -v vercel &> /dev/null; then
echo "✓ Vercel detected - deploying to vercel.app..."
vercel --prod
elif command -v netlify &> /dev/null; then
echo "✓ Netlify detected - deploying to netlify.app..."
netlify deploy --prod --dir=.
else
echo "❌ No deployment tool found."
echo ""
echo "Install one of the following:"
echo ""
echo "Option 1 - Surge (fastest):"
echo " npm install -g surge"
echo " surge"
echo ""
echo "Option 2 - Vercel (recommended):"
echo " npm install -g vercel"
echo " vercel"
echo ""
echo "Option 3 - Netlify:"
echo " npm install -g netlify-cli"
echo " netlify deploy"
echo ""
echo "Option 4 - GitHub Pages:"
echo " 1. Create repo on GitHub"
echo " 2. git init && git add . && git commit -m 'Initial commit'"
echo " 3. git remote add origin https://github.com/username/repo.git"
echo " 4. git push -u origin main"
echo " 5. Enable Pages in repo settings"
echo ""
exit 1
fi
echo ""
echo "================================"
echo "STATUS: OPERATIONAL"