What goes in `DATABASE_URL`?


#1

When you’re setting up bors-ng, you need to hook it up with a PostgreSQL database. If you’re setting it up with Docker or Heroku, you’ll configure the database with the DATABASE_URL environment variable.

Format it like this:

postgresql://<username>:<password>@<hostname>:5432/<database_name>

Replace the parts in angle brackets with stuff from your database configuration. If you’re using Docker, the hostname will be the same as your service or container name, and the other options are specified in your database environment. If you’re using Heroku, this environment variable should be provided automatically when you connect the Heroku Postgres service.


#2

AKA (for interwebs research purposes) Postgres Connection URI