feat: add Render Blueprint for one-click self-host (#15478)

Adds one-click deploy to [Render](https://render.com) for self-hosters.
The change is additive: a root `render.yaml`, two small files under
`.render/`, and one button in the existing Self-Host section of the
README.
This commit is contained in:
Shifra Williams
2026-08-14 01:14:50 -07:00
committed by GitHub
parent 0f349af8ee
commit 1719a3b582
4 changed files with 74 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# syntax=docker/dockerfile:1.7
# Adds a start script to the published AFFiNE image. Nothing is compiled here.
FROM ghcr.io/toeverything/affine:stable
COPY --chmod=0755 start.sh /usr/local/bin/render-start.sh
CMD ["/usr/local/bin/render-start.sh"]
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
# Use the hostname Render assigns, unless AFFINE_SERVER_HOST is already set to a
# custom domain.
export AFFINE_SERVER_HOST="${AFFINE_SERVER_HOST:-${RENDER_EXTERNAL_HOSTNAME:-localhost}}"
# Generates the server private key on first boot, then runs the Prisma and data
# migrations. Safe to run on every boot.
node ./scripts/self-host-predeploy.js
exec node ./dist/main.js