diff --git a/docs/docs/start/docker_dev.md b/docs/docs/start/docker_dev.md index b56ccfae23..289e6306e3 100644 --- a/docs/docs/start/docker_dev.md +++ b/docs/docs/start/docker_dev.md @@ -68,7 +68,7 @@ If desired, the user may edit the environment variables, located in the `.env` f Perform the initial database setup by running the following command: ```bash -docker compose run inventree-dev-server invoke update --no-frontend +docker compose run inventree-dev-server invoke update ``` If this is the first time you are configuring the development server, this command will build a development version of the inventree docker image. @@ -229,7 +229,7 @@ Any updates which require a database schema change must be reflected in the data To run database migrations inside the docker container, run the following command: ``` -docker compose run inventree-dev-server invoke update --no-frontend +docker compose run inventree-dev-server invoke update ``` ### Docker Image Updates diff --git a/docs/docs/start/docker_prod.md b/docs/docs/start/docker_prod.md index b08eaa31b5..a29e50b40a 100644 --- a/docs/docs/start/docker_prod.md +++ b/docs/docs/start/docker_prod.md @@ -135,7 +135,7 @@ The first step is to edit the environment variables, located in the `.env` file. Perform the initial database setup by running the following command: ```bash -docker compose run inventree-server invoke update --no-frontend +docker compose run inventree-server invoke update ``` This command performs the following steps: @@ -216,7 +216,7 @@ This ensures that the InvenTree containers will be running the latest version of Run the following command to ensure that the InvenTree database is updated: ``` -docker compose run inventree-server invoke update --no-frontend +docker compose run inventree-server invoke update ``` !!! info "Skip Backup" diff --git a/tasks.py b/tasks.py index 662733170c..6557a0c970 100644 --- a/tasks.py +++ b/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