-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
Β·42 lines (35 loc) Β· 1.09 KB
/
deploy.sh
File metadata and controls
executable file
Β·42 lines (35 loc) Β· 1.09 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
#!/bin/bash
# Learn.Codeunia.com Deployment Script
# This script builds and prepares the application for deployment
echo "π Starting deployment process for Learn.Codeunia.com..."
# 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 linting..."
npm run lint
# Build the application
echo "ποΈ Building application..."
npm run build
if [ $? -eq 0 ]; then
echo "β
Build successful!"
echo ""
echo "π Application is ready for deployment!"
echo ""
echo "Next steps:"
echo "1. Push your code to GitHub"
echo "2. Connect to Vercel for automatic deployment"
echo "3. Or deploy manually to your preferred platform"
echo ""
echo "Local testing:"
echo "- Run 'npm run start' to test the production build"
echo "- Or run 'npm run dev' for development"
else
echo "β Build failed! Please check the errors above."
exit 1
fi