Created
August 16, 2015 16:00
-
-
Save codeincontext/f3bfdb2316a24e1dd8a7 to your computer and use it in GitHub Desktop.
temporary hack to deal with an ever-changing pg port (should link instead)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| postgresql_id=$(docker ps | grep jeffutter/postgresql:latest | awk '{print $1}') | |
| postgresql_private_ip=$(docker inspect ${postgresql_id} | grep IPAddress | awk '{ print $2 }' | tr -d ',"') | |
| echo "pg ip: $postgresql_private_ip" | |
| dokku config:set fun.with.co.de PG_HOST=$postgresql_private_ip | |
| dokku config:set scotch.watch PG_HOST=$postgresql_private_ip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment