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

Centralize generating static content #1504

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

naglepuff
Copy link
Collaborator

@naglepuff naglepuff commented Jan 8, 2025

Fix #1486

Only generate once before the app starts up, and mount normally as part of application startup.

Only generate once before the app starts up, and mount normally as part
of application startup.
)
if static_path.exists() and static_path.is_dir():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the app needs the static files to function, should this be a requirement? e.g.

if not static_path.is_dir():
    raise Exception("Static files not found")

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

Successfully merging this pull request may close these issues.

Static file generation makes app startup indeterminate
2 participants