fix: schalte django static asset routing frei und korrigiere dateirechte im image
All checks were successful
cloudmon GitOps Deploy / build-and-deploy (push) Successful in 21s

This commit is contained in:
Bast 2026-11-01 10:42:32 -06:00
parent f0d92688c7
commit 0863fe8576
2 changed files with 8 additions and 1 deletions

View file

@ -10,6 +10,9 @@ RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r re
COPY . /app/
# KORRIGIERT: Stellt sicher, dass die JS-Assets für Gunicorn lesbar sind
RUN chmod -R 755 /app/monitor/static/
EXPOSE 8000
CMD ["gunicorn", "core.wsgi:application", "--bind", "0.0.0.0:8000"]

View file

@ -1,9 +1,13 @@
from django.urls import path
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from monitor.views import DashboardView, ClusterGraphDataView, StatePushReceiverView
urlpatterns = [
path('', DashboardView.as_view(), name='dashboard'),
path('api/cluster-data/', ClusterGraphDataView.as_view(), name='cluster_data'),
# DER NEUE INTERNATIONALE PUSH-ENDPUNKT
path('api/v1/push/', StatePushReceiverView.as_view(), name='api_push'),
]
# ZWINGEND NOTWENDIG FÜR DEN SEXT-RUN IM CONTAINER:
# Erlaubt Django, die statischen JavaScript-Dateien direkt im Gunicorn-Prozess auszuliefern
urlpatterns += staticfiles_urlpatterns()