Report this

What is the reason for this report?

How to use database_url in App Platform

Posted on March 17, 2021
Sri Charan Madhavapeddi

By Sri Charan Madhavapeddi

Sr Solutions Architect II

I am trying to connect the Database on the App Platform and I don’t see anything happened. Connection is not successful.

Env Vars Not Recognized

Description: I have an App Spec:

databases:

  • engine: PG name: db num_nodes: 1 size: db-s-dev-database version: “12” name: portal region: nyc services:
  • dockerfile_path: Dockerfile envs:
  • key: DATABASE_URL scope: RUN_AND_BUILD_TIME value: ${db.JDBC_DATABASE_URL}
  • key: DATABASE_USERNAME scope: RUN_AND_BUILD_TIME value: ${db.USERNAME}
  • key: DATABASE_PASSWORD scope: RUN_AND_BUILD_TIME value: ${db.PASSWORD}

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.