Last Updated: February 25, 2016
·
657
· Kresimir Pendic

automate heroku script for postgres color

How to find out in shell color for POSTGRES db connection:

COLOR=$(heroku addons | grep POSTGRES | awk -F' ' '{print $NF}')
heroku pg:promote $COLOR