12 lines
159 B
Bash
Executable File

#!/bin/sh
echo "Waiting for postgres..."
while ! nc -z 172.17.0.50 5432; do
sleep 0.1
done
echo "PostgreSQL started"
gunicorn -b 0.0.0.0:5000 manage:app