Skip to content

Commit adace37

Browse files
chore: add static files collection and update settings for static files support
1 parent f81e120 commit adace37

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

apps/api/bin/docker-entrypoint-api.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ python manage.py create_bucket
3232
# Clear Cache before starting to remove stale values
3333
python manage.py clear_cache
3434

35+
# Collect static files
36+
python manage.py collectstatic --noinput
37+
3538
exec gunicorn -w "$GUNICORN_WORKERS" -k uvicorn.workers.UvicornWorker plane.asgi:application --bind 0.0.0.0:"${PORT:-8000}" --max-requests 1200 --max-requests-jitter 1000 --access-logfile -

apps/api/plane/settings/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"django.contrib.auth",
3737
"django.contrib.contenttypes",
3838
"django.contrib.sessions",
39+
"django.contrib.staticfiles",
3940
# Inhouse apps
4041
"plane.analytics",
4142
"plane.app",
19.3 KB
Loading

0 commit comments

Comments
 (0)