Skip to content

Commit ad1e236

Browse files
committed
Run collectstatic in background to speed up initialization
1 parent 9d7abe2 commit ad1e236

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/entrypoints/web.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
python3 manage.py migrate
66
cat ../../docker/scripts/createsuperuser.py | python3 manage.py shell
7-
python3 manage.py collectstatic --no-input
7+
8+
# collect static in background
9+
python3 manage.py collectstatic --no-input &
10+
811
python3 manage.py loaddata test_data
912

1013
python3 manage.py runserver 0.0.0.0:8000

0 commit comments

Comments
 (0)