df-web/start.sh
2022-11-21 01:37:22 +10:00

11 lines
267 B
Bash
Executable file

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