-
Notifications
You must be signed in to change notification settings - Fork 56
Deployment
mrofisr edited this page Jul 17, 2026
·
1 revision
This guide covers deploying Sakeenah to production environments.
Deploy full-stack application to Cloudflare's edge network.
-
Authenticate with Cloudflare:
wrangler login
-
Create Hyperdrive connection:
wrangler hyperdrive create sakeenah-db \ --connection-string="postgresql://user:pass@host:5432/sakeenah" -
Update
wrangler.jsoncwith your Hyperdrive ID and custom domain -
Deploy:
bun run deploy
- Global edge distribution (100+ locations)
- Sub-50ms response times
- Automatic SSL certificates
- 100,000 requests/day (free tier)
Deploy frontend and backend to different providers.
- Vercel
- Netlify
- Cloudflare Pages
Deploy the dist/ folder after running bun run build.
- VPS with Bun runtime
- Railway
- Fly.io
- Render
- Supabase
- Neon
- Railway PostgreSQL
VITE_API_URL=https://api.yourdomain.com
DATABASE_URL=postgresql://user:pass@production-host:5432/sakeenahbun run build # Frontend production build
bun run server # Backend production server# Development
bun run dev # Run client + server concurrently
bun run dev:client # Frontend only (Vite)
bun run dev:server # Backend only (Hono API)
# Production
bun run build # Build frontend to dist/
bun run preview # Preview production build
bun run server # Run backend server
# Cloudflare Workers
bun run deploy # Build + deploy to Workers
bun run cf:dev # Test with Workers runtime
bun run cf:tail # View live deployment logs
# Utilities
bun run generate-links # Generate personalized guest links
bun run lint # ESLint code validation