-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_deployment_package.sh
More file actions
executable file
·50 lines (42 loc) · 1.15 KB
/
Copy pathcreate_deployment_package.sh
File metadata and controls
executable file
·50 lines (42 loc) · 1.15 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
#!/bin/bash
echo "🚀 Creating deployment package for Netlify..."
# Navigate to project root
cd /Users/apple/Desktop/krowd11
# Clean and rebuild
echo "🧹 Cleaning and rebuilding..."
cd client
rm -rf dist
npm run build
if [ -d "dist" ]; then
echo "✅ Build successful!"
# Verify important files exist
if [ -f "dist/index.html" ]; then
echo "✅ index.html found"
else
echo "❌ index.html missing!"
exit 1
fi
if [ -f "dist/_redirects" ]; then
echo "✅ _redirects found"
else
echo "❌ _redirects missing!"
exit 1
fi
echo ""
echo "📦 Deployment package ready in client/dist/"
echo "📊 Package contents:"
ls -la dist/
echo ""
echo "🚀 Manual Deployment Instructions:"
echo "1. Go to https://app.netlify.com/"
echo "2. Drag and drop the 'client/dist' folder"
echo "3. Your site will be deployed automatically"
echo ""
echo "🔧 Git Deployment Settings:"
echo "Base directory: client"
echo "Build command: npm ci && npm run build"
echo "Publish directory: dist"
else
echo "❌ Build failed!"
exit 1
fi