Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle default kolibri behaviour from 0.15.x onwards to no longer collectstatic files #84

Closed
rtibbles opened this issue Mar 26, 2021 · 1 comment · Fixed by #87
Closed
Assignees

Comments

@rtibbles
Copy link
Member

The pull request: learningequality/kolibri#7920 completed the reliance of Kolibri on using Whitenoise to serve precompressed static files, from the source directories.

This means that Kolibri no longer runs collectstatic as an ordinary part of its life cycle.

For nginx configurations to serve static files efficiently there are two options:

  1. Transparently proxy the kolibri server, and rely on the cache headers set by Kolibri (Whitenoise sets intelligent cache headers by default). This option has the advantage that we can (alongside the work in Prepare kolibri server to work with the changes to support hashi in 0.15.x #82) focus on transparently proxying Kolibri endpoints, rather than more complex nginx configurations.

  2. Configure the kolibri-server package to run collectstatic and carry on as before.

@jredrejo
Copy link
Member

Thanks @rtibbles
I have already a proof of concept that works, just need to clean it up to create the pr for kolibri-server
With the current roadmap for kolibri 0.15 it does not seem to be urgent to do it, but if it we plan to release a beta version soon I'd do it in the next days.
@jonboiser are there any plans to do a kolibri 0.15 beta release in the short term?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants