keystonejs / keystone-6-heroku-example

A simple example project of showing how you might deploy Keystone 6 to Heroku
15 stars 15 forks source link

DB_URL undefined during build #4

Open ChuckJonas opened 2 years ago

ChuckJonas commented 2 years ago

I tried this same setup on my app but it seemed like heroku hadn't created the ENV vars or something yet.

remote: error: Error validating datasource `postgresql`: You must provide a nonempty URL. The environment variable `DATABASE_URL` resolved to an empty string.
remote:   -->  schema.prisma:5
remote:    | 
remote:  4 | datasource postgresql {
remote:  5 |   url      = env("DATABASE_URL")

Any ideas?

bladey commented 2 years ago

@ChuckJonas did you add the Postgresql addon to Heroku as per the example or did you use the one-click deployment option?