Deployment — Bernie's Backyard Environment
Run from Windows terminal in E:\Claude_Projects\sonan-trackers\lawncare-portal
Commands
# 1. Apply D1 migrations on remote DB
npx wrangler d1 migrations apply lawncare_db --remote --env bernies
# 2. Set JWT_SECRET
npx wrangler secret put JWT_SECRET --env bernies
# 3. Deploy Worker
npx wrangler deploy --env bernies
# 4. Push to GitHub
git push origin main
Cloudflare Pages Setup
| Setting | Value |
|---|---|
| GitHub repo + branch | sonantechai/lawncare-portal → main |
| Build command | npm run build |
| Output directory | dist (no trailing space) |
| Env var | VITE_API_URL = https://bernies-api.sonandigital.com |
Custom Domain
Pages project → Custom Domains → Add bernies.sonandigital.com. Cloudflare handles DNS automatically.
Post-Deploy First Login
Default password: Admin@2026. Change immediately via Settings → Change Password. Then update business name, phone, email, address, service types in Settings to match the client.