I am trying to deploy my Vesper server to Heroku and Vesper requires an ormconfig.json file.
This works just fine when I use my local db because I can fill out all the fields that will combine into the connection string. However, when I add a db in Heroku I just get the full url and I can't find where to put it.
This is my ormconfig.json right now.
{
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "postgres",
"password": "password",
"database": "test",
"synchronize": true,
"entities": ["target/entity/**/*.js"],
"migrations": ["target/migrations/*.js"],
"cli": {
"migrationsDir": "src/migrations"
}
}
I'm hoping I could replace most fields with just the database_url but I can't find any documentation stating under what name I should put it.