Show migrations when debugging

This commit is contained in:
tcely 2025-05-02 14:28:20 -04:00 committed by GitHub
parent 9ae0fecb7d
commit cf8555aab1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,13 @@ then
chmod -R 0755 /downloads
fi
if [ 'True' = "${TUBESYNC_DEBUG:-False}" ]
then
s6-setuidgid app \
/usr/bin/python3 /app/manage.py \
showmigrations -v 3 --list
fi
# Run migrations
exec s6-setuidgid app \
/usr/bin/python3 /app/manage.py migrate