mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
Remove --no-frontend option (#5568)
- Until the new frontend is fully ready to be shipped, adding this option only serves to confuse users (and break the install process potentially) - Remove this option entirely from the invoke script - Update documentation accordingly
This commit is contained in:
6
tasks.py
6
tasks.py
@ -320,11 +320,10 @@ def migrate(c):
|
||||
post=[static, clean_settings, translate_stats],
|
||||
help={
|
||||
'skip_backup': 'Skip database backup step (advanced users)',
|
||||
'no_frontend': 'Skip frontend compilation/download step (is already included with docker image)',
|
||||
'frontend': 'Force frontend compilation/download step (ignores INVENTREE_DOCKER)',
|
||||
}
|
||||
)
|
||||
def update(c, skip_backup=False, no_frontend: bool = False, frontend: bool = False):
|
||||
def update(c, skip_backup=False, frontend: bool = False):
|
||||
"""Update InvenTree installation.
|
||||
|
||||
This command should be invoked after source code has been updated,
|
||||
@ -354,7 +353,8 @@ def update(c, skip_backup=False, no_frontend: bool = False, frontend: bool = Fal
|
||||
# If:
|
||||
# - 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:
|
||||
# if (os.environ.get('INVENTREE_DOCKER', False) and not frontend) or no_frontend:
|
||||
if not frontend:
|
||||
return
|
||||
|
||||
# Decide if we should compile the frontend or try to download it
|
||||
|
Reference in New Issue
Block a user