Deployment Advisor by daffy0208/ai-dev-standards
npx skills add https://github.com/daffy0208/ai-dev-standards --skill 'Deployment Advisor'根据您的应用规模和需求选择合适的部署策略。
从简单开始,按需扩展。 不要为几个月内都不会到来的 10 个用户过度设计基础设施。
成本 : $0-$20/月 部署时间 : 5-15 分钟 最适合 : MVP、原型、副业项目、营销网站
推荐平台 :
Vercel (Next.js, React, 静态网站):
Netlify (静态网站, Jamstack):
Railway (全栈, 数据库):
Cloudflare Pages (静态 + Workers):
成本 : $20-$500/月 部署时间 : 1-4 小时 : 已验证的产品、成长中的初创公司、付费客户
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
推荐平台 :
AWS Amplify (全栈 Web 应用):
Google Cloud Run (容器化应用):
Fly.io (分布式应用):
Render (AWS 的更简单替代方案):
成本 : $500-$5,000+/月 部署时间 : 1-4 周 最适合 : 高流量、企业级、合规性要求
推荐平台 :
AWS ECS (容器,无 Kubernetes 复杂性):
AWS EKS / Google GKE (Kubernetes):
DigitalOcean App Platform (中端简单方案):
静态网站 (HTML, CSS, JS) : → Vercel, Netlify, Cloudflare Pages
Next.js 应用 : → Vercel (最佳集成), Netlify
React/Vue/Angular SPA : → Vercel, Netlify, Cloudflare Pages
Node.js API : → Railway, Render, Fly.io, AWS Amplify
Python API (FastAPI, Flask, Django) : → Railway, Render, Fly.io, Google Cloud Run
Go/Rust API : → Fly.io, Railway, Google Cloud Run
全栈 (前端 + 后端 + 数据库) : → Railway, Render, AWS Amplify
微服务 : → Fly.io, Google Cloud Run, AWS ECS
无数据库 : → Vercel, Netlify, Cloudflare Pages
无服务器数据库 (PostgreSQL, MySQL) : → Railway, Render (集成), AWS RDS, Supabase
Redis/缓存 : → Railway, Render, AWS ElastiCache, Upstash
MongoDB : → MongoDB Atlas, Railway, AWS DocumentDB
< 100 用户 (MVP): → 免费/廉价套餐: Vercel 免费, Railway $5
100-1,000 用户 : → Vercel Pro ($20), Railway ($20-50), Render
1K-10K 用户 : → Railway ($50-100), AWS Amplify, Cloud Run
10K-100K 用户 : → AWS Amplify, Cloud Run, Fly.io ($100-500)
100K-1M 用户 : → AWS ECS, GKE, 专用服务器 ($500-5000)
单一区域 (美国/欧洲) : → 任何平台
全球 (全球低延迟) : → Cloudflare Pages/Workers, Vercel Edge, Fly.io (多区域)
中国/亚洲 : → Cloudflare, Fly.io 香港, 阿里云
合规性 (HIPAA, SOC 2, GDPR) : → AWS, Google Cloud, Azure (合规认证)
长时间运行的任务 ( >15 分钟): → Railway, Render 后台工作器, AWS ECS
WebSockets/实时通信 : → Railway, Render, Fly.io, AWS ECS
高计算量 (视频处理, 机器学习) : → AWS ECS/EKS, Google Cloud Run, 专用 GPU
平台 : Vercel, Netlify, Railway, Render
设置 (5 分钟):
npm run builddist 或 .next环境变量 :
DATABASE_URL=postgresql://...
API_KEY=secret_key
NODE_ENV=production
预览部署 :
使用时机 : 自定义测试、安全扫描、多阶段部署
# .github/workflows/deploy.yml
name: Deploy to Production
on:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
- run: npm test
- run: npm run lint
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.ORG_ID }}
vercel-project-id: ${{ secrets.PROJECT_ID }}
vercel-args: '--prod'
功能 :
流水线阶段 :
Build → Test → Security Scan → Stage Deploy → Integration Tests → Prod Deploy
工具 :
技术栈 : Next.js (Vercel) + API (Railway/Supabase)
优点 : 快速、廉价、易于扩展 缺点 : 不适合实时或服务器密集型应用
Frontend (Vercel) → API (Railway) → Database (Supabase)
技术栈 : Vercel Functions + 无服务器数据库 (Supabase/PlanetScale)
优点 : 零服务器管理,按使用付费 缺点 : 冷启动,供应商锁定
Frontend (Vercel) → Edge Functions (Vercel) → Serverless DB
技术栈 : Railway (Node.js + PostgreSQL)
优点 : 简单,一切都在一个地方 缺点 : 单点故障
Railway: Node.js API + PostgreSQL + Redis
技术栈 : 多个 Cloud Run 服务 + Cloud SQL
优点 : 独立扩展,故障隔离 缺点 : 复杂,成本较高
Frontend (Vercel) → Service 1 (Cloud Run) → Database
→ Service 2 (Cloud Run) → Queue
总计 : MVP 每月 $0-5
简单的营销网站 : → Vercel + Contentful CMS
SaaS MVP : → Next.js (Vercel) + Supabase (数据库 + 身份验证) + Stripe
内部工具 : → React (Netlify) + FastAPI (Railway) + PostgreSQL (Railway)
移动应用后端 : → FastAPI (Cloud Run) + Cloud SQL + Firebase Auth
电子商务 : → Next.js (Vercel) + Shopify/Stripe + PostgreSQL (Supabase)
相关技能 :
frontend-builder - 用于构建要部署的应用api-designer - 用于 API 架构设计performance-optimizer - 用于优化已部署的应用相关模式 :
META/DECISION-FRAMEWORK.md - 平台选择指南STANDARDS/architecture-patterns/deployment-patterns.md - 部署架构 (创建时)相关操作手册 :
PLAYBOOKS/deploy-to-vercel.md - Vercel 部署指南 (创建时)PLAYBOOKS/setup-cicd.md - CI/CD 设置流程 (创建时)每周安装次数
–
代码仓库
GitHub 星标数
21
首次出现时间
–
安全审计
Choose the right deployment strategy for your application scale and requirements.
Start simple, scale when needed. Don't over-engineer infrastructure for 10 users that won't arrive for months.
Cost : $0-$20/month Time to Deploy : 5-15 minutes Best for : MVPs, prototypes, side projects, marketing sites
Recommended Platforms :
Vercel (Next.js, React, static sites):
Netlify (Static sites, Jamstack):
Railway (Full-stack, databases):
Cloudflare Pages (Static + Workers):
Cost : $20-$500/month Time to Deploy : 1-4 hours Best for : Validated products, growing startups, paid customers
Recommended Platforms :
AWS Amplify (Full-stack web apps):
Google Cloud Run (Containerized apps):
Fly.io (Distributed apps):
Render (Simpler alternative to AWS):
Cost : $500-$5,000+/month Time to Deploy : 1-4 weeks Best for : High traffic, enterprise, compliance requirements
Recommended Platforms :
AWS ECS (Containers, no Kubernetes complexity):
AWS EKS / Google GKE (Kubernetes):
DigitalOcean App Platform (Mid-tier simplicity):
Static site (HTML, CSS, JS) : → Vercel, Netlify, Cloudflare Pages
Next.js app : → Vercel (best integration), Netlify
React/Vue/Angular SPA : → Vercel, Netlify, Cloudflare Pages
Node.js API : → Railway, Render, Fly.io, AWS Amplify
Python API (FastAPI, Flask, Django) : → Railway, Render, Fly.io, Google Cloud Run
Go/Rust API : → Fly.io, Railway, Google Cloud Run
Full-stack (Frontend + Backend + DB) : → Railway, Render, AWS Amplify
Microservices : → Fly.io, Google Cloud Run, AWS ECS
No database : → Vercel, Netlify, Cloudflare Pages
Serverless database (PostgreSQL, MySQL) : → Railway, Render (integrated), AWS RDS, Supabase
Redis/caching : → Railway, Render, AWS ElastiCache, Upstash
MongoDB : → MongoDB Atlas, Railway, AWS DocumentDB
< 100 users (MVP): → Free/cheap tiers: Vercel free, Railway $5
100-1,000 users : → Vercel Pro ($20), Railway ($20-50), Render
1K-10K users : → Railway ($50-100), AWS Amplify, Cloud Run
10K-100K users : → AWS Amplify, Cloud Run, Fly.io ($100-500)
100K-1M users : → AWS ECS, GKE, dedicated servers ($500-5000)
Single region (US/Europe) : → Any platform
Global (low latency worldwide) : → Cloudflare Pages/Workers, Vercel Edge, Fly.io (multi-region)
China/Asia : → Cloudflare, Fly.io Hong Kong, Alibaba Cloud
Compliance (HIPAA, SOC 2, GDPR) : → AWS, Google Cloud, Azure (compliance certifications)
Long-running jobs ( >15 min): → Railway, Render Background Workers, AWS ECS
WebSockets/real-time : → Railway, Render, Fly.io, AWS ECS
High compute (video processing, ML) : → AWS ECS/EKS, Google Cloud Run, dedicated GPUs
Platforms : Vercel, Netlify, Railway, Render
Setup (5 minutes):
npm run builddist or .nextEnvironment Variables :
DATABASE_URL=postgresql://...
API_KEY=secret_key
NODE_ENV=production
Preview Deployments :
Use when : Custom tests, security scans, multi-stage deploys
# .github/workflows/deploy.yml
name: Deploy to Production
on:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
- run: npm test
- run: npm run lint
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.ORG_ID }}
vercel-project-id: ${{ secrets.PROJECT_ID }}
vercel-args: '--prod'
Features :
Pipeline Stages :
Build → Test → Security Scan → Stage Deploy → Integration Tests → Prod Deploy
Tools :
Stack : Next.js (Vercel) + API (Railway/Supabase)
Pros : Fast, cheap, scales easily Cons : Not suitable for real-time or server-heavy apps
Frontend (Vercel) → API (Railway) → Database (Supabase)
Stack : Vercel Functions + Serverless DB (Supabase/PlanetScale)
Pros : Zero server management, pay per use Cons : Cold starts, vendor lock-in
Frontend (Vercel) → Edge Functions (Vercel) → Serverless DB
Stack : Railway (Node.js + PostgreSQL)
Pros : Simple, everything in one place Cons : Single point of failure
Railway: Node.js API + PostgreSQL + Redis
Stack : Multiple Cloud Run services + Cloud SQL
Pros : Independent scaling, fault isolation Cons : Complex, higher cost
Frontend (Vercel) → Service 1 (Cloud Run) → Database
→ Service 2 (Cloud Run) → Queue
Total : $0-5/month for MVP
Simple marketing site : → Vercel + Contentful CMS
SaaS MVP : → Next.js (Vercel) + Supabase (DB + Auth) + Stripe
Internal tool : → React (Netlify) + FastAPI (Railway) + PostgreSQL (Railway)
Mobile app backend : → FastAPI (Cloud Run) + Cloud SQL + Firebase Auth
E-commerce : → Next.js (Vercel) + Shopify/Stripe + PostgreSQL (Supabase)
Related Skills :
frontend-builder - For building apps to deployapi-designer - For API architectureperformance-optimizer - For optimizing deployed appsRelated Patterns :
META/DECISION-FRAMEWORK.md - Platform selection guidanceSTANDARDS/architecture-patterns/deployment-patterns.md - Deployment architectures (when created)Related Playbooks :
PLAYBOOKS/deploy-to-vercel.md - Vercel deployment guide (when created)PLAYBOOKS/setup-cicd.md - CI/CD setup procedure (when created)Weekly Installs
–
Repository
GitHub Stars
21
First Seen
–
Security Audits