mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-06-12 02:05:29 +00:00
Initial commit
- Copied from inventree.github.io
This commit is contained in:
44
docs/start/update.md
Normal file
44
docs/start/update.md
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
title: Update InvenTree
|
||||
layout: page
|
||||
---
|
||||
|
||||
## 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.
|
||||
|
||||
### 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:
|
||||
|
||||
```
|
||||
invoke 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.
|
Reference in New Issue
Block a user