ogq6bw
Last Updated: February 25, 2016
·
405
· mkdizajn

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