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

Run collectstatic only once per container #3479

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

DeD1rk
Copy link
Member

@DeD1rk DeD1rk commented Nov 9, 2023

Closes #3290.

Summary

Creates a file after running collectstatic successfully, and skips collectstatic if that file already exists. As every release a new container is started, this effectively runs the slow collectstatic once per release, so that normal reboots are quick.

@DeD1rk DeD1rk merged commit 52759bd into master Nov 9, 2023
10 checks passed
@DeD1rk DeD1rk deleted the run-collectstatic-only-once-per-container branch November 9, 2023 18:00
@DeD1rk DeD1rk added the chore Something that is not a bug or a feature, does not change production behaviour label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Something that is not a bug or a feature, does not change production behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collectstatic to S3 is slow
1 participant