11 lines
267 B
Bash
11 lines
267 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
if [ ! -f "$PGHOST/.s.PGSQL.*" ]; then
|
||
|
pg_ctl start -l $LOG_PATH -o "-c listen_addresses= -c unix_socket_directories=$PGHOST"
|
||
|
fi
|
||
|
if [ $? != 0 ]; then
|
||
|
echo 'You need to run ./setup-postgres.sh'
|
||
|
fi
|
||
|
|
||
|
# uvicorn main:app --reload --host 0.0.0.0 &
|