1. Quickstarts
  2. Blitz

Deploy Blitz

Blitz is a batteries-included framework that’s inspired by Ruby on Rails, is built on Next.js, and features a “Zero-API” data layer abstraction that eliminates the need for REST/GraphQL.

One-Click Deploy

Deploy to Render

Modify an Existing Blitz Project for Render

If you’ve been developing a Blitz project locally and are ready to deploy it to Render, follow these steps:

  1. Switch your project to use PostgreSQL if you’re currently using SQLite (or another database).
  2. Add the YAML below to a render.yaml file at the root of your repo.
  3. Commit and push your changes to GitHub or GitLab.
  4. Deploy your code to Render. If you haven’t already, connect your GitHub or GitLab account to Render.
  5. Render will deploy your code as a web service, create a PostgreSQL instance, and configure the connection between them. Additionally, future pushes to your GitHub or GitLab repo will automatically deploy your Render web service.
  - type: web
    name: blitzapp
    runtime: node
    plan: starter
    buildCommand: yarn --frozen-lockfile --prod=false &&
      blitz prisma generate &&
      blitz build &&
      blitz prisma migrate deploy
    startCommand: blitz start
      - key: NODE_ENV
        value: production
      - key: DATABASE_URL
          name: blitzapp-db
          property: connectionString
        generateValue: true

  - name: blitzapp-db
    plan: starter

You may also find it helpful to review the commit history of the repo used for the one-click deploy above to better understand these steps.