arachnys / cabot

Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty
MIT License
5.6k stars 592 forks source link

Refactor static file handling #430

Open jezdez opened 7 years ago

jezdez commented 7 years ago

There are a few things I've found while looking how Cabot organizes the static files:

I'd like to propose (and contribute) some steps that could simplify the setup:

I'm wondering if I'm missing something obvious, but I think this would be a big win for Cabot. In terms of reference that I can pull this off, I wrote django-staticfiles and co-wrote django-compressor. Please let me know if you're interested in that direction.

dbuxton commented 7 years ago

I think this sounds amazing @jezdez - I haven't seen whitenoise before but it looks like a godsend. The whole code layout wasn't thought through well and any reorganization would be gratefully received.

frankh commented 7 years ago

@jezdez sounds awesome

I've already merged in whitenoise - i was already looking at ways to serve the static files from docker and this is perfect, thanks