Browse Source

Merge pull request #1007 from doccano/fix/#1002

Update run.sh to fix #1002
pull/1024/head
Hiroki Nakayama 4 years ago
committed by GitHub
parent
commit
846b49f03f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. 6
      app/tools/run.sh

6
app/tools/run.sh

@ -3,7 +3,11 @@
set -o errexit
echo "Making staticfiles"
if [[ ! -d "staticfiles" ]]; then python manage.py collectstatic --noinput; fi
static_dir=staticfiles
if [[ ! -d $static_dir ]] || [[ -z $(ls -A $static_dir) ]]; then
echo "Executing collectstatic"
python manage.py collectstatic --noinput;
fi
echo "Initializing database"
python manage.py wait_for_db

Loading…
Cancel
Save