Hiroki Nakayama
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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 |
|
|
|