Skip to content

Instantly share code, notes, and snippets.

@codeincontext
Created August 16, 2015 16:00
Show Gist options
  • Select an option

  • Save codeincontext/f3bfdb2316a24e1dd8a7 to your computer and use it in GitHub Desktop.

Select an option

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)
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