mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-16 01:45:50 +00:00
builds
This commit is contained in:
14
.build/prod/entrypoint.sh
Executable file
14
.build/prod/entrypoint.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$DATABASE" = "postgres" ]
|
||||
then
|
||||
echo "Waiting for postgres..."
|
||||
|
||||
while ! nc -z $POSTGRES_HOST $POSTGRES_PORT; do
|
||||
sleep 0.1
|
||||
done
|
||||
|
||||
echo "PostgreSQL started"
|
||||
fi
|
||||
|
||||
exec "$@"
|
Reference in New Issue
Block a user