env database heroku code example
Example 1: connect to db heroku
heroku pg:psql -f schema.sql -a HEROKU_APP_NAME
Example 2: spring heroku change environment
$ heroku config:set SPRING_PROFILES_ACTIVE=tst
heroku pg:psql -f schema.sql -a HEROKU_APP_NAME
$ heroku config:set SPRING_PROFILES_ACTIVE=tst