render.yaml
files shown belowUse 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
- key: SESSION_SECRET_KEY
generateValue: true
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 prisma generate &&
blitz build &&
blitz prisma migrate deploy
startCommand: blitz start
envVars:
- key: NODE_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: blitzapp-db
property: connectionString
- key: SESSION_SECRET_KEY
generateValue: true
databases:
- name: blitzapp-db
plan: starter