Skip to content

Deployment

Thomas Shaw edited this page Apr 16, 2024 · 1 revision

Architecture

Currently, we use:

  • fly.io for backend hosting

  • Cloudflare R2 for file bucket hosting (s3 drop-in replacement)

Environment variables are set in fly.io to point to Cloudflare, and the .env.production file in frontend points to the deployed backend URL.

You'll notice there are .env.development files in both the frontend and backend folder - those reference the docker-run local dev database and s3 emulator with localstack.

Automation

We have GitHub Actions set up:

  • On every push to main

    • Deploy the backend to fly.io
  • On every tag matching v*.*.*

    • Build Electron app on Windows, Mac, and Linux
    • This one is currently broken and needs fixing.
Clone this wiki locally