ojuso-map/production-dbshell.sh

7 lines
240 B
Bash
Raw Normal View History

#!/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