mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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:
parent
4bbf168393
commit
997b2ad569
@ -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:
|
Perform the initial database setup by running the following command:
|
||||||
|
|
||||||
```bash
|
```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.
|
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:
|
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
|
### Docker Image Updates
|
||||||
|
@ -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:
|
Perform the initial database setup by running the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose run inventree-server invoke update --no-frontend
|
docker compose run inventree-server invoke update
|
||||||
```
|
```
|
||||||
|
|
||||||
This command performs the following steps:
|
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:
|
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"
|
!!! info "Skip Backup"
|
||||||
|
6
tasks.py
6
tasks.py
@ -320,11 +320,10 @@ def migrate(c):
|
|||||||
post=[static, clean_settings, translate_stats],
|
post=[static, clean_settings, translate_stats],
|
||||||
help={
|
help={
|
||||||
'skip_backup': 'Skip database backup step (advanced users)',
|
'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)',
|
'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.
|
"""Update InvenTree installation.
|
||||||
|
|
||||||
This command should be invoked after source code has been updated,
|
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:
|
# If:
|
||||||
# - INVENTREE_DOCKER is set (by the docker image eg.) and not overridden by `--frontend` flag
|
# - INVENTREE_DOCKER is set (by the docker image eg.) and not overridden by `--frontend` flag
|
||||||
# - `--no-frontend` flag is set
|
# - `--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
|
return
|
||||||
|
|
||||||
# Decide if we should compile the frontend or try to download it
|
# Decide if we should compile the frontend or try to download it
|
||||||
|
Loading…
Reference in New Issue
Block a user