-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.js
More file actions
22 lines (18 loc) · 720 Bytes
/
Copy pathproject.js
File metadata and controls
22 lines (18 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
# Deploy VibeDev to Heroku (free tier) with a single command.
set -e
APP_NAME="${1:-vibedev}"
echo "→ Building client & deploying to Heroku as '$APP_NAME'"
echo " (skip if you don't use Heroku — Docker/Render work too)"
cd "$(dirname "$0")/.."
npm run build:client
if ! command -v heroku >/dev/null 2>&1; then
echo "Heroku CLI not found. Install: https://devcenter.heroku.com/articles/heroku-cli"
echo "Then run: ./scripts/deploy-heroku.sh"
exit 1
fi
heroku create "$APP_NAME" --no-remote || true
heroku config:set NODE_ENV=production AI_PROVIDER=mock -a "$APP_NAME"
git add -A && git commit -m "deploy vibedev" --allow-empty 2>/dev/null || true
git push heroku HEAD:main
heroku open