mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Compile openapi client in background when django runserver is reloading
This commit is contained in:
@ -50,7 +50,13 @@ class Command(CollectStatic):
|
||||
return Path(location)
|
||||
|
||||
Scss.compile(self.collect_scss())
|
||||
OpenApi.compile() # This needs to be prior to javascript bundling
|
||||
openapi = OpenApi.compile() # This needs to be prior to javascript bundling
|
||||
if openapi is not None:
|
||||
_ = openapi.wait()
|
||||
if openapi.returncode:
|
||||
raise RuntimeError(
|
||||
f"Openapi generation failed with returncode {openapi.returncode}"
|
||||
)
|
||||
JSBundler.compile()
|
||||
|
||||
collected = super().collect()
|
||||
|
Reference in New Issue
Block a user