| name | deploy-automation |
| description | One-click deploy to production. User just says "deploy". Use when: user wants to publish their app. Triggers: "deploy", "publish", "go live", "опубликуй". |
Deploy Automation
Deploy to production with one command.
Platform Selection
Based on template:
| Template | Platform | Why |
|---|---|---|
| nextjs-supabase | Vercel | Native Next.js support |
| fastapi-postgres | Fly.io | Docker + persistent DB |
| hono-drizzle | Cloudflare | Edge-native |
| landing-page | Netlify/Vercel | Static hosting |
Deploy Process
Vercel (Next.js)
- Check Vercel CLI installed
- Set environment variables
vercel --prod- Return production URL
Fly.io (FastAPI)
- Generate Dockerfile if missing
- Create fly.toml
- Set secrets
fly deploy- Return production URL
Cloudflare (Hono)
- Configure wrangler.toml
- Set secrets
wrangler deploy- Return workers.dev URL
Netlify (Static)
- Build static files
netlify deploy --prod- Return production URL
Pre-Deploy Checks
- All tests pass
- No console.log
- Environment variables set
- Build succeeds
- No security issues
Environment Variables
Template for each platform:
# Supabase
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
# PostgreSQL
DATABASE_URL=
SECRET_KEY=
# General
NODE_ENV=production
User Experience
User: "Deploy this"
- "Deploying to [platform]..."
- Run pre-deploy checks
- Build production
- Deploy
- "✅ Live at https://your-app.vercel.app"
Custom Domains
After initial deploy:
- "Add domain" → configure DNS
- Auto-SSL via platform
- "✅ Live at https://yourdomain.com"