Skip to content

Commit 846b49f

Browse files
authored
Merge pull request doccano#1007 from doccano/fix/doccano#1002
Update run.sh to fix doccano#1002
2 parents 6d5bff4 + 16c9bd3 commit 846b49f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/tools/run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
set -o errexit
44

55
echo "Making staticfiles"
6-
if [[ ! -d "staticfiles" ]]; then python manage.py collectstatic --noinput; fi
6+
static_dir=staticfiles
7+
if [[ ! -d $static_dir ]] || [[ -z $(ls -A $static_dir) ]]; then
8+
echo "Executing collectstatic"
9+
python manage.py collectstatic --noinput;
10+
fi
711

812
echo "Initializing database"
913
python manage.py wait_for_db

0 commit comments

Comments
 (0)