Torn.com-ActivityTracker/entrypoint.sh

19 lines
296 B
Bash
Raw Normal View History

2025-02-22 16:55:41 +01:00
#!/bin/sh
if [ "$BROKER" = "redis" ]
then
echo "Waiting for redis..."
while ! nc -zv $BROKER_HOST $BROKER_PORT; do
sleep 10
done
echo "Redis started"
fi
echo "Starting app..."
cd /app
rm -f celery.pid
touch celery.pid
/home/app/.local/bin/uwsgi --ini uwsgi.ini
exec "$@"