...
This commit is contained in:
11
services/users/entrypoint-prod.sh
Executable file
11
services/users/entrypoint-prod.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Waiting for postgres..."
|
||||
|
||||
while ! nc -z users-db 5432; do
|
||||
sleep 0.1
|
||||
done
|
||||
|
||||
echo "PostgreSQL started"
|
||||
|
||||
gunicorn -b 0.0.0.0:5000 manage:app
|
||||
Reference in New Issue
Block a user