Add script to get into postgres on production

This commit is contained in:
Anna Sidwell 2018-10-09 21:23:12 -04:00
parent 3dccff6eea
commit 579bb73574

6
production-dbshell.sh Executable file
View File

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