

For example, you can follow 12-Factor application configuration principles by using the Heroku CLI and invoke your process like so: DATABASE_URL=$(heroku config:get DATABASE_URL -a your-app) your_process

This variable is managed by Heroku, and is the primary way we tell you about your database’s network location and credentials. Your database is attached to the Heroku app and is accessible via an app config var containing the database URL, even if you host no code in the application itself.

You can find the application name on the database page at. All Heroku Postgres databases have a corresponding Heroku application. Heroku Postgres databases are designed to be used with a Heroku app. Connecting to Heroku Postgres Databases from Outside of Heroku English - 日本語に切り替える
