Render Deployment
Deploy ProjectAchilles to Render using the included Blueprint (render.yaml) or manual setup.
Architecture
| Service | Root Directory | Plan | Public Domain |
|---|---|---|---|
| achilles-backend | backend/ | Standard (2 GB / 1 CPU) | Yes |
| achilles-frontend | frontend/ | Starter | Yes |
The frontend calls the backend directly via CORS (using VITE_API_URL).
On the Starter plan (512 MB / 0.5 CPU), Analytics queries, background syncs and test builds running together slowed the /api/health check until Render restarted the instance in the middle of a build ("Build was interrupted", "Failed to load tests"). The Blueprint therefore uses plan: standard for the backend and sets BUILD_NICE=15, which runs build subprocesses at a lower CPU priority so the API keeps responding. The frontend stays on Starter.
Render's private network DNS is only available on Standard plan and above. A Starter service cannot resolve other services by name, so the frontend uses VITE_API_URL to call the backend's public URL directly.
Option A: Blueprint Deploy (Recommended)
-
Go to render.com/deploy and connect your GitHub repo
-
Render detects
render.yamland shows the Blueprint preview -
Click Apply
-
Set the
sync: falsevariables on each service:Backend:
CLERK_PUBLISHABLE_KEY=pk_live_...CLERK_SECRET_KEY=sk_live_...CORS_ORIGIN=https://<frontend>.onrender.comAGENT_SERVER_URL=https://<backend>.onrender.comTESTS_REPO_URL=https://github.com/ubercylon8/f0_library.gitGITHUB_TOKEN=ghp_...ELASTICSEARCH_CLOUD_ID=...ELASTICSEARCH_API_KEY=...Frontend:
CLERK_PUBLISHABLE_KEY=pk_live_...VITE_API_URL=https://<backend>.onrender.com
SESSION_SECRET and ENCRYPTION_SECRET are auto-generated by the Blueprint. Keep the generated ENCRYPTION_SECRET: saved settings can't be read with a different one. The Blueprint does not set CLI_AUTH_SECRET; add it (openssl rand -base64 32) if you use the CLI.
Option B: Manual Setup
Backend Service
- New → Web Service → connect GitHub repo
- Root Directory:
backend, Runtime: Docker, Plan: Standard - Add a Disk: mount at
/root/.projectachilles, 5 GB - Set environment variables (see Environment Variables), including
BUILD_NICE=15
Frontend Service
- New → Web Service → same repo
- Root Directory:
frontend, Runtime: Docker, Plan: Starter - Set
CLERK_PUBLISHABLE_KEYandVITE_API_URL
Every user without a role is read-only. In the Clerk Dashboard, add the
metadata claim to the session token, then give your own account
{"role": "admin"} in its public metadata and sign in again:
session token claim and
first admin. Invite everyone else from
Settings → Users.
Persistent Disk
The backend uses a 5 GB persistent disk at /root/.projectachilles (the Go module cache alone grew past 680 MB, which left no room on a 1 GB disk):
| Path | Purpose |
|---|---|
agents.db | SQLite database |
analytics.json | Encrypted ES credentials |
certs/ | Code signing certificates |
binaries/ | Built agent binaries |
builds/ | Built test binaries |
go-cache/ | Go module cache (the compiler cache stays in /tmp, off the disk) |
See Data Storage for the full list.
Persistent disks disable Render's zero-downtime deploys. There will be brief downtime during deploys while the new container starts.
Agent Build from Source
The backend Docker image includes Go 1.25. Set AGENT_REPO_URL to enable agent cross-compilation:
AGENT_REPO_URL=https://github.com/projectachilles/ProjectAchilles.git
AGENT_REPO_BRANCH=main
GITHUB_TOKEN=ghp_... # if repo is private
Before every build, the backend fetches the latest commit of AGENT_REPO_BRANCH (git fetch --depth 1 + hard reset), so a build always compiles the current branch, even when an agent-only merge didn't trigger a redeploy. The commit is recorded in the version's release notes (Built from source (windows/amd64) at 1bbe749). If the fetch fails, the build fails rather than compiling stale code. This matters on Render because buildFilter doesn't redeploy the backend for agent-only merges.
Auto-Deploy
By default the Blueprint sets autoDeployTrigger: checksPass: Render deploys a pushed commit once its checks pass. Render reads the commit's combined status, so any failing status on that commit, even one unrelated to Render (for example a rate-limited Vercel preview or a failing npm audit job), stops the deploy with no error on Render's side. The service keeps running the previous commit.
If you deploy from your own fork and see that, deploy from GitHub Actions instead. .github/workflows/deploy-render.yml runs after the CI workflow succeeds on main and calls each service's deploy hook with the tested commit (ref=<sha>). It uses the same path filters as buildFilter, so a service only redeploys when its files changed. It reads changed files from the GitHub API and runs no repository code.
- In Render, open each service → Settings → Deploy Hook and copy the URL.
- In GitHub, add the repository secrets
RENDER_DEPLOY_HOOK_BACKENDandRENDER_DEPLOY_HOOK_FRONTEND. - In Render, set Auto-Deploy to Off on both services, so a commit isn't deployed twice.
To redeploy by hand, run the workflow from the Actions tab (Deploy to Render → Run workflow, choose both, backend or frontend). Without the secrets the workflow only logs a notice, so the Blueprint default is unaffected.
Custom Domains
Add CNAME records in your DNS provider:
| Record | Type | Target |
|---|---|---|
<prefix>.yourdomain.com | CNAME | <frontend>.onrender.com |
<prefix>.agent.yourdomain.com | CNAME | <backend>.onrender.com |
Then update CORS_ORIGIN, AGENT_SERVER_URL, and VITE_API_URL to use the custom domains.
Cost Estimate
| Service | Est. Monthly Cost |
|---|---|
| Backend (Standard plan) | ~$25 |
| Frontend (Starter plan) | ~$7 |
| Persistent disk (5 GB) | ~$1.25 |
| Total | ~$33 |
Check Render's pricing page for current prices.
Helper Scripts
# Generate all secrets at once
./scripts/generate-secrets.sh --target render
# Interactive setup wizard — collects Clerk/ES config, outputs Render-ready env vars
./scripts/setup.sh # Select: PaaS → Render
# Initialize Elasticsearch indices on Elastic Cloud
./scripts/init-elasticsearch.sh --cloud-id "deploy:..." --api-key "..."
Troubleshooting
Frontend shows CORS errors
Verify CORS_ORIGIN is set to the frontend's full URL with https:// prefix.
GitHub/Google login returns 404
You're using a Clerk production instance without custom OAuth credentials. Follow the Prerequisites Clerk OAuth setup.
Render stopped deploying after a merge
Check the merge commit's combined status: gh api repos/<owner>/<repo>/commits/<sha>/status. A failure from any context, Render's or not, holds the checksPass auto-deploy. Deploy the commit manually (service → Manual Deploy → Deploy latest commit) and consider deploying from GitHub Actions.
Agent builds fail with "Agent source not found"
AGENT_REPO_URL is not set, or the Git clone failed at startup. Check container logs for errors.