-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-render.sh
More file actions
executable file
Β·43 lines (39 loc) Β· 1.47 KB
/
deploy-render.sh
File metadata and controls
executable file
Β·43 lines (39 loc) Β· 1.47 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
# Render Deployment Script for PacMac Mobile
echo "π Starting Render deployment process..."
# 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
# Check if render.yaml exists
if [ ! -f "render.yaml" ]; then
echo "β Error: render.yaml not found. Please ensure Render configuration is set up."
exit 1
fi
echo "π Render Deployment Checklist:"
echo ""
echo "1. β
Code is committed and pushed to GitHub"
echo "2. π§ Go to https://dashboard.render.com"
echo "3. π Connect your GitHub repository"
echo "4. βοΈ Configure build settings:"
echo " - Build Command: npm install && npx prisma generate && npm run build"
echo " - Start Command: npm start"
echo "5. π Add environment variables:"
echo " - NEXT_PUBLIC_SUPABASE_URL"
echo " - NEXT_PUBLIC_SUPABASE_ANON_KEY"
echo " - NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY"
echo " - STRIPE_SECRET_KEY"
echo " - STRIPE_WEBHOOK_SECRET"
echo " - GITHUB_CLIENT_ID"
echo " - GITHUB_CLIENT_SECRET"
echo " - NEXT_PUBLIC_GITHUB_CLIENT_ID"
echo " - NEXT_PUBLIC_APP_URL"
echo "6. π Deploy and get your Render URL"
echo "7. π Update webhook URLs in Stripe, GitHub, and Supabase"
echo ""
echo "π For detailed instructions, see: RENDER_DEPLOYMENT_GUIDE.md"
echo ""
echo "π― Your app will be available at: https://your-app-name.onrender.com"
echo ""
echo "β
Ready for Render deployment!"