Skip to content

Commit 3078f41

Browse files
committed
Removed check for preexisting static files
1 parent aef51e5 commit 3078f41

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

entrypoint.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,10 @@ else
6565
chown -R rnacentral "${RNACENTRAL_HOME}"/rnacentral/rnacentral/local_settings.py
6666
fi
6767

68-
# Run collectstatic only if static files are missing
69-
if [ -z "$(ls -A /srv/rnacentral/static)" ]; then
70-
echo "INFO: Collecting static files..."
71-
python "${RNACENTRAL_HOME}"/rnacentral/manage.py collectstatic --noinput
72-
else
73-
echo "INFO: Static files already present, skipping collectstatic."
74-
fi
68+
69+
echo "INFO: Collecting static files..."
70+
python "${RNACENTRAL_HOME}"/rnacentral/manage.py collectstatic --noinput
71+
7572

7673
# Run django compressor
7774
echo "INFO: Running django compress"

0 commit comments

Comments
 (0)