I am using a (mostly) untouched copy of the remix starter app to get up an running on Render. This repo uses a Render “blueprint” i.e. it has a render.yaml file.
Deploys were working until I… deleted the web service and DB manually, in order to rename both services (using an updated render.yaml file). Before manually deleting, I first tried updating the yaml file, which created a new web service as expected, but failed to create a new database, so I ended up just deleting everything, thinking that would give me a fresh start. But I’m now facing the below error when deploying my web service.
The actual deployment error
Error: P1001: Can't reach database server at `dpg-cn9a43un7f5s73fmepj0-a`:`5432`
My yaml file
databases:
- name: dealer-marketplace-db
plan: starter
services:
- type: web
name: dealer-marketplace
env: node
plan: starter
buildCommand: npm ci --production=false && npm run build && npm prune --production
startCommand: npx prisma migrate deploy && npm run start
healthCheckPath: /healthcheck
envVars:
- key: DATABASE_URL
fromDatabase:
name: dealer-marketplace-db
property: connectionString
- key: SESSION_SECRET
generateValue: true
- key: NODE_ENV #required so NODE_ENV is set in build env
value: production