heroku set one environment variable based on another code example Example: spring heroku change environment $ heroku config:set SPRING_PROFILES_ACTIVE=tst