Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 2.98 KB

render.md

File metadata and controls

56 lines (42 loc) · 2.98 KB

Free hosting on Render and Neon

Runs ReproDrop at no cost: the published Docker image on Render's free web service, with Neon's free Postgres. Good for trying ReproDrop, a small team, or a demo. For anything you depend on, use production.md.

What to expect

  • The server sleeps. Render's free service stops after about 15 minutes without traffic, and the next request takes about a minute while it starts. If a submission fails while it wakes, submit again from the review page: it resumes where it stopped instead of creating a duplicate.
  • Attachments live in the database. The free service's disk is wiped on every restart, so render.yaml sets STORAGE_DRIVER=postgres and keeps screenshots in Postgres. Uploads are capped at 2 MB each (MAX_UPLOAD_BYTES).
  • Neon's free plan has a small storage limit (1 GB per project when this was written). Reports are small, but screenshots add up. Keep the retention period short (the Privacy page) and watch the size in Neon's dashboard.
  • No backups or uptime guarantee on either free plan.

1. Create the database (Neon)

  1. Sign up at neon.tech and create a project. Pick the region closest to Render's Virginia region (AWS us-east-1).
  2. Open Connect, turn Connection pooling off, and copy the connection string. It looks like postgresql://user:password@ep-….us-east-1.aws.neon.tech/neondb?sslmode=require. Keep it secret.

2. Deploy the server (Render)

  1. Sign up at render.com.
  2. Open https://render.com/deploy?repo=https://github.com/patchyard/reprodrop. Render reads render.yaml and shows one free web service, reprodrop.
  3. Paste the Neon connection string into DATABASE_URL, then Apply. Render generates APP_SECRET and ENCRYPTION_KEY itself, and APP_URL defaults to the service's address (https://reprodrop-….onrender.com).
  4. When the deploy finishes, open the service URL and create the first account. The database is migrated on start, and /api/health reports "storage": "ok".

Don't change APP_SECRET or ENCRYPTION_KEY later. Sessions and stored Jira credentials depend on them.

3. Connect the extension

In the extension's settings, set the server address to the service URL, and paste an API token created under Settings → API tokens.

Running it for other people

ALLOW_SIGNUP is true in the blueprint, so anyone with the URL can create an account. If the server is only for your team, set it to false in Render's Environment tab once everyone has joined. If you keep sign-up open, you're operating a service that holds other people's bug reports: publish who runs it and how long data is kept, keep retention short, and expect to remove abuse.

Updating

The blueprint pins an image version. To update, change the image tag under Settings → Image in Render (for example ghcr.io/patchyard/reprodrop:0.1.4) and deploy. Migrations run on start.