Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion compose/production/django/start
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ set -o errexit
set -o pipefail
set -o nounset

python /app/manage.py collectstatic --noinput
if [ "${DISABLE_COLLECTSTATIC:-0}" = "1" ]; then
echo "Skipping collectstatic (DISABLE_COLLECTSTATIC=1)"
else
python /app/manage.py collectstatic --noinput
fi

# Gunicorn natively reads WEB_CONCURRENCY as its --workers default.
# If not set, default to CPU core count.
Expand Down
Loading