Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docker/horizon/extend_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,19 @@ config_zun_dashboard

if settings_changed; then
${MANAGE_PY} collectstatic --noinput --clear
${MANAGE_PY} compress --force
compress_ok="false"
for a in 1 2 3 4 5; do
if ${MANAGE_PY} compress --force 2>&1 > /dev/null; then
compress_ok="true"
break
else
echo "attempt ${a} failed"
fi
done
if [ "$compress_ok" = "false" ]; then
echo "The compress operation failed after 5 attempts."
exit 1
fi
settings_bundle | md5sum > $HASH_PATH
fi

Expand Down