mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for invoke update (#6379)
- If frontend option was skipped during update, then "static" step would not be performed
This commit is contained in:
parent
7fe8207463
commit
e85dd73f62
8
tasks.py
8
tasks.py
@ -298,6 +298,8 @@ def static(c, frontend=False):
|
||||
manage(c, 'prerender')
|
||||
if frontend and node_available():
|
||||
frontend_build(c)
|
||||
|
||||
print('Collecting static files...')
|
||||
manage(c, 'collectstatic --no-input --clear')
|
||||
|
||||
|
||||
@ -420,8 +422,8 @@ def update(
|
||||
# - INVENTREE_DOCKER is set (by the docker image eg.) and not overridden by `--frontend` flag
|
||||
# - `--no-frontend` flag is set
|
||||
if (os.environ.get('INVENTREE_DOCKER', False) and not frontend) or no_frontend:
|
||||
return
|
||||
|
||||
pass
|
||||
else:
|
||||
# Decide if we should compile the frontend or try to download it
|
||||
if node_available(bypass_yarn=True):
|
||||
frontend_compile(c)
|
||||
@ -429,7 +431,7 @@ def update(
|
||||
frontend_download(c)
|
||||
|
||||
if not skip_static:
|
||||
static(c)
|
||||
static(c, frontend=not no_frontend)
|
||||
|
||||
|
||||
# Data tasks
|
||||
|
Loading…
Reference in New Issue
Block a user