Skip to content

Deployment Guide (Render)

Automatic Deployment

BacMR is configured for "Infra-as-Code" via render.yaml. - Trigger: Pushing to the main branch triggers an automatic rebuild.

Manual Steps for New Env

  1. Create Service: Connect your GitHub repo to Render.
  2. Select Type: Web Service.
  3. Connect Blueprint: Render should automatically detect render.yaml.
  4. Environment Variables:
  5. Copy keys from your local .env.
  6. Ensure ENV=prod is set.
  7. Ensure CORS_ALLOWED_ORIGINS includes your frontend URL.

Port Management

The app listens on $PORT (defaulting to 8000 locally). Render injects the correct port automatically.

Log Monitoring

Use the "Logs" tab in the Render dashboard to monitor: - Startup errors (missing dependencies). - Runtime errors (OpenAI rate limits). - Token deduction failures.

Back to Index