Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/whitiue/logiMathApp/llms.txt

Use this file to discover all available pages before exploring further.

Render.com provides a straightforward path to hosting LogiMath in the cloud without managing infrastructure. The repository includes a render.yaml blueprint file that declares the backend web service and a managed PostgreSQL database as code, so Render can provision and wire them together automatically.

How render.yaml works

The render.yaml file at the project root is a Render Infrastructure as Code blueprint. When you connect your repository, Render reads this file and creates the services it describes:
render.yaml
services:
  - type: web
    name: logmath-backend
    runtime: docker
    dockerfilePath: ./src/BackEnd/Dockerfile
    dockerContext: ./
    region: ohio

    envVars:
      - key: DATABASE_URL
        fromDatabase:
          name: logmath_db
          property: connectionString
      - key: ENVIRONMENT
        value: production

databases:
  - name: logmath_db
    databaseName: logmath_db
    user: logmath_user
    region: ohio
The blueprint defines:
  • A web service named logmath-backend built from ./src/BackEnd/Dockerfile, using the repository root as the Docker build context.
  • A managed PostgreSQL database named logmath_db with the user logmath_user, provisioned in the ohio region alongside the web service.
  • An automatic DATABASE_URL binding: Render injects the database’s connection string directly into the backend service at runtime, so you never have to copy credentials manually.
Both resources are deployed to the ohio region to minimize network latency between the web service and the database.

Deploy to Render

1

Create a Render account

Go to render.com and sign up for a free account. No credit card is required for the free tier.
2

Connect your GitHub repository

From the Render dashboard, click New and select Blueprint. Authorize Render to access your GitHub account, then select the LogiMath repository. Render will detect the render.yaml file automatically.
3

Create the web service

Render displays the services declared in render.yaml. Confirm the logmath-backend web service settings:
  • Runtime: Docker
  • Dockerfile path: ./src/BackEnd/Dockerfile
  • Docker context: ./ (repository root)
  • Region: Ohio
4

Create the PostgreSQL database

Confirm the logmath_db database settings. Render provisions a managed PostgreSQL instance and automatically binds its connection string to the DATABASE_URL environment variable on the backend service via the fromDatabase reference in render.yaml.
5

Set additional environment variables

Any variables not defined in render.yaml must be added manually. In the Render dashboard, open the logmath-backend service, go to Environment, and add any extra variables your deployment requires.
Never commit secrets or credentials to your repository. Set sensitive values directly in the Render dashboard environment settings.
6

Deploy

Click Apply to trigger the first deployment. Render builds the Docker image, starts the container, and runs the healthcheck. Once the service shows Live, the backend is accessible at:
https://logimath-backend.onrender.com
Subsequent deploys happen automatically whenever you push to the connected branch.

Free tier behavior

The Render free tier spins down web services after 15 minutes of inactivity. The first request after a period of inactivity may take 30–60 seconds while the container restarts. This is expected behavior and is suitable for development and low-traffic environments. Upgrade to a paid plan to keep the service running continuously.

Automatic deploys

After the initial setup, Render watches your connected branch for new commits. Every push triggers a new Docker build and a rolling deploy with zero downtime. If a deploy fails the healthcheck, Render automatically rolls back to the previous working version.

Build docs developers (and LLMs) love