render.yaml
files shown below or use the render recipeNew +
button and then the Blueprint
menu itemUse this render.yaml
:
services:
- type: web
name: blitzapp
env: node
plan: free
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: free
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: free