{
"name": "default",
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "postgres",
"password": "PG_PASSWORD",
"database": "postgres",
"synchronize": true,
"logging": true,
"entities": ["src/entity/*.*"]
}
This is my ormconfig.json. So Heroku is obviously giving me a connection refused error on my database. I have a Postgres addon set up and I have a DATABASE_URL env variable in my setting page now. If I add a DATABASE_URL env,
my question is how do I get my ormconfig to take that env variable? Because right now host and port and un/pw, etc are all separate and I need to consolidate them down to one config option in my ormconfig.