InvenTree/docs/update.rst
Oliver Walters d827070585 Fix docs
2020-02-02 18:11:29 +11:00

1017 B

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head>

Update InvenTree

System Message: ERROR/3 (<stdin>, line 4)

Unknown directive type "toctree".

.. toctree::
   :titlesonly:
   :maxdepth: 2
   :caption: Update
   :hidden:

Adminitrators 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.

Important

It is advisable to backup the InvenTree database before performing these steps. The particular backup procedure may depend on your installation details. To perform a simple database dump, run the command make backup.

Stop Server

Stop the InvenTree server (e.g. gunicorn)

Update Source

Update the InvenTree source code to the latest version.

git pull origin master

Perform Migrations

Updating the database is as simple as calling the makefile target:

make update

This command performs the following steps:

  • Perform required database schema changes
  • Collect required static files

Restart Server

Restart the InvenTree server

</html>