docker/server/entrypoint.sh
author ymh <ymh.work@gmail.com>
Mon, 02 Feb 2026 18:27:25 +0100
changeset 1 f213403ee0c8
parent 0 2a447b707b65
permissions -rwxr-xr-x
New version platform

#!/usr/bin/env bash

set -Eeuo pipefail

#echo "Waiting for postgres..."

#while ! nc -z db 5432; do
#  sleep 0.1
#done

#echo "PostgreSQL started"

pushd /code/platform_web/

python manage.py migrate
python manage.py collectstatic --noinput --clear

popd

exec "$@"