diff --git a/production-dbshell.sh b/production-dbshell.sh new file mode 100755 index 0000000..5a7a91b --- /dev/null +++ b/production-dbshell.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +export PGPASSWORD=$(grep "POSTGRES_PASSWORD" /production/ojuso-map/environment | cut -d= -f2-) +PGUSER=$(grep "POSTGRES_USER" /production/ojuso-map/environment | cut -d= -f2-) + +psql --host=127.0.0.1 --port=5432 --username=$PGUSER