Essa dúvida simples me perseguiu durante 1 semana, por incrível que pareça.
Meu arquivo application.properties ficou assim como está abaixo, tornando possível o deploy no Heroku e uso em abiente de Dev…
Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
Local Dev enviorement
#spring.datasource.url=jdbc:postgresql://localhost:5432/postgres_demo
#spring.datasource.username= postgres
#spring.datasource.password= password
Heroku enviorement
spring.datasource.url=${JDBC_DATABASE_URL}
spring.datasource.username=${JDBC_DATABASE_USERNAME}
spring.datasource.password=${JDBC_DATABASE_PASSWORD}
The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
Hibernate ddl auto (create, create-drop, validate, update)
spring.jpa.hibernate.ddl-auto = update