render.yaml
files shown belowSESSION_SECRET_KEY
as the
name, then click on the "generate" button in the value field. Then
click save.Use this render.yaml
:
services:
- type: web
name: blitzapp
env: node
plan: starter
buildCommand: yarn --frozen-lockfile --prod=false && blitz build
startCommand: blitz start
envVars:
- key: NODE_ENV
value: production
Update your render.yaml
to provide the DATABASE_URL
environment
variable to connect to your database:
services:
- type: web
name: blitzapp
env: node
plan: starter
buildCommand:
yarn --frozen-lockfile --prod=false &&
blitz build &&
blitz prisma migrate deploy --preview-feature
startCommand: blitz start
envVars:
- key: NODE_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: blitzapp-db
property: connectionString
databases:
- name: blitzapp-db
plan: starter