migrate database to heroku spring boot code example Example: spring heroku change environment $ heroku config:set SPRING_PROFILES_ACTIVE=tst