mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-06-17 04:35:36 +00:00
_includes
docs
admin
app
assets
build
companies
extend
javascripts
part
releases
report
start
config.md
demo.md
development.md
docker.md
docker_dev.md
docker_prod.md
install.md
intro.md
migrate.md
production.md
update.md
stock
stylesheets
webfonts
contribute.md
credits.md
faq.md
features.md
index.md
upcoming.md
.gitignore
LICENSE
README.md
main.py
mkdocs.yml
readthedocs.yml
requirements.txt
47 lines
1.4 KiB
Markdown
47 lines
1.4 KiB
Markdown
---
|
|
title: Update InvenTree
|
|
---
|
|
|
|
## Update InvenTree
|
|
|
|
Administrators wishing to update InvenTree to the latest version should follow the instructions below. The commands listed below should be run from the InvenTree root directory.
|
|
|
|
!!! info "Update Database"
|
|
It is advisable to backup the InvenTree database before performing these steps. The particular backup procedure may depend on your installation details.
|
|
|
|
### Stop InvenTree Server
|
|
|
|
Ensure the InvenTree server is stopped. This will depend on the particulars of your database installation.
|
|
|
|
!!! info "Stop Server"
|
|
The method by which the InvenTree server is stopped depends on your particular installation!
|
|
|
|
### Update Source Code
|
|
|
|
Update the InvenTree source code to the latest version (or a particular commit if required).
|
|
|
|
For example, pull down the latest InvenTree sourcecode using Git:
|
|
|
|
```
|
|
git pull origin master
|
|
```
|
|
|
|
### Perform Database Migrations
|
|
|
|
Updating the database is as simple as calling the `update` script:
|
|
|
|
```
|
|
inv update
|
|
```
|
|
|
|
This command performs the following steps:
|
|
|
|
* Ensure all rquired packages are installed and up to date
|
|
* Perform required database schema changes
|
|
* Run the user through any steps which require interaction
|
|
* Collect any new or updated static files
|
|
|
|
### Restart Server
|
|
|
|
Ensure the InvenTree server is restarted. This will depend on the particulars of your database installation.
|