I am running through the doc for a rails application on render. When I connect to the app using the blueprint in render I get the following error:
A render.yaml
file was found, but there was an issue.
web.“mysite”.envVars.DATABASE_URL
env var depends on non-existent DB: mysite
here is my render.yaml file, I think it is copied straight from the render doc.
services:
- type: web
name: mysite
runtime: ruby
plan: free
buildCommand: “./bin/render-build.sh”preDeployCommand: “bundle exec rails db:migrate” # preDeployCommand only available on paid instance types
startCommand: “bundle exec rails server”
envVars:- key: DATABASE_URL
fromDatabase:
name: mysite
property: connectionString - key: RAILS_MASTER_KEY
sync: false - key: WEB_CONCURRENCY
value: 2 # sensible default
- key: DATABASE_URL
and the build script
#!/usr/bin/env bash
exit on error
set -o errexit
bundle install
bundle exec rails assets:precompile
bundle exec rails assets:clean
bundle exec rails db:migrate