lovegpt / docs /deployment.md
Crownelius's picture
Upload OpenDateBase Gradio Space
c536472 verified
|
Raw
History Blame Contribute Delete
1.34 kB

A newer version of the Gradio SDK is available: 6.19.0

Upgrade

Deployment

Backend

Build command:

npm install
npm run build

Start command:

npm start

Required environment variables are listed in backend/.env.example.

Set the Stripe webhook endpoint to:

https://your-backend-domain.com/api/payments/webhook

Supabase

Apply:

backend/supabase/migrations/001_initial_schema.sql

Enable Realtime publication for:

  • matches
  • conversations
  • messages

Keep the service role key out of the Flutter app. Only the backend receives it.

Flutter Web

cd frontend
flutter pub get
flutter build web `
  --dart-define=SUPABASE_URL=https://your-project.supabase.co `
  --dart-define=SUPABASE_ANON_KEY=your-anon-key `
  --dart-define=BACKEND_URL=https://your-backend-domain.com/api

Deploy frontend/build/web.

Android and iOS

cd frontend
flutter build apk --release `
  --dart-define=SUPABASE_URL=https://your-project.supabase.co `
  --dart-define=SUPABASE_ANON_KEY=your-anon-key `
  --dart-define=BACKEND_URL=https://your-backend-domain.com/api
cd frontend
flutter build ipa --release `
  --dart-define=SUPABASE_URL=https://your-project.supabase.co `
  --dart-define=SUPABASE_ANON_KEY=your-anon-key `
  --dart-define=BACKEND_URL=https://your-backend-domain.com/api