Add script to get into postgres on production
This commit is contained in:
parent
3dccff6eea
commit
579bb73574
6
production-dbshell.sh
Executable file
6
production-dbshell.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user