-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
56 lines (48 loc) · 1.6 KB
/
Copy pathdeploy.bat
File metadata and controls
56 lines (48 loc) · 1.6 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
51
52
53
54
55
56
@echo off
REM WhatsApp Bot Deployment Script for Windows
REM This script helps you deploy your WhatsApp bot to Render via GitHub
echo 🚀 WhatsApp Bot Deployment Script
echo =================================
REM Check if git is initialized
if not exist ".git" (
echo 📁 Initializing Git repository...
git init
)
REM Add all files
echo 📋 Adding files to Git...
git add .
REM Commit changes
set /p commit_message="Enter commit message (default: Deploy to Render): "
if "%commit_message%"=="" set commit_message=Deploy to Render
echo 💾 Committing changes...
git commit -m "%commit_message%"
REM Check if remote exists
git remote get-url origin >nul 2>&1
if errorlevel 1 (
echo 🔗 Setting up GitHub remote...
set /p github_username="Enter your GitHub username: "
set /p repo_name="Enter your repository name (default: whatsapp-bot): "
if "%repo_name%"=="" set repo_name=whatsapp-bot
git remote add origin "https://github.com/%github_username%/%repo_name%.git"
)
REM Push to GitHub
echo 📤 Pushing to GitHub...
git branch -M main
git push -u origin main
echo ✅ Code pushed to GitHub successfully!
echo.
echo 📋 Next steps:
echo 1. Go to https://dashboard.render.com/
echo 2. Click 'New +' and select 'Web Service'
echo 3. Connect your GitHub repository
echo 4. Configure the following settings:
echo - Build Command: npm install
echo - Start Command: npm start
echo - Environment Variables:
echo * NODE_ENV=production
echo * PORT=10000
echo * BOT_PREFIX=!
echo 5. Deploy and wait for QR code in logs
echo.
echo 🎉 Your WhatsApp bot will be live shortly!
pause