self-hosting

run the cloud app and worker with Postgres, S3-compatible storage, and OpenRouter.

requirements

  • Node.js 20+
  • Postgres
  • S3-compatible bucket
  • OpenRouter API key

environment

$ export PUBLIC_APP_URL="http://localhost:3030"$ export BETTER_AUTH_URL="http://localhost:3030"$ export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/shareavideo"$ export BUCKET_NAME="shareavideo"$ export AWS_ACCESS_KEY_ID="..."$ export AWS_SECRET_ACCESS_KEY="..."$ export OPENROUTER_API_KEY="..."

run web + worker

$ npm --prefix cloud run dev
$ npm --prefix cloud run worker