Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.52 KB

File metadata and controls

39 lines (30 loc) · 1.52 KB

🚀 Billion-Dollar Deployment Guide

To take the Autoblogger AI Engine live, follow this elite deployment strategy.

1. Frontend (Vercel)

The dashboard is optimized for Vercel.

  1. Push to GitHub: Ensure your project is in a GitHub repository.
  2. Import to Vercel: Go to vercel.com/new.
  3. Configure Project:
    • Root Directory: Select frontend.
    • Framework Preset: Next.js.
  4. Environment Variables:
    • Add NEXT_PUBLIC_API_URL. Set this to /api/v1 (Vercel routes /api to the backend).
  5. Deploy: Hit the deploy button.

2. Backend (Railway or Render)

While Vercel's experimentalServices can handle the backend, for a billion-dollar scale with Celery and Redis, I recommend Railway.

  1. Railway Setup: Import the repository to Railway.
  2. Services: Railway will detect the backend/Dockerfile.
  3. Environment Variables:
    • DATABASE_URL: Point to a production PostgreSQL.
    • REDIS_URL: Point to your Redis instance.
    • OPENAI_API_KEY: Your production key.
    • GEMINI_API_KEY: Your production key.
    • ENCRYPTION_KEY: A secure 32-character string.

3. Database (PostgreSQL)

For a billion-dollar scale, use a managed provider like Supabase or Neon.


Production Check-list

  • Backend CORS origins updated to your Vercel URL in backend/app/core/config.py.
  • API keys stored in Vercel/Railway secrets (not .env).
  • SSL enabled on all endpoints.

Your empire is ready for the global stage. 🌍