df-web/start.sh

11 lines
267 B
Bash
Raw Normal View History

2022-11-20 07:37:22 -08:00
#!/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 &