mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Merge remote-tracking branch 'inventree/master'
This commit is contained in:
		@@ -11,6 +11,7 @@ InvenTree Source Documentation
 | 
			
		||||
   Configuration<config>
 | 
			
		||||
   Deployment<deploy>
 | 
			
		||||
   Migrate Data<migrate>
 | 
			
		||||
   Update InvenTree<update>
 | 
			
		||||
   Backup and Restore<backup>
 | 
			
		||||
   Modal Forms<forms>
 | 
			
		||||
   Tables<tables>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										37
									
								
								docs/update.rst
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								docs/update.rst
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,37 @@
 | 
			
		||||
Update InvenTree
 | 
			
		||||
================
 | 
			
		||||
 | 
			
		||||
.. 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.
 | 
			
		||||
 | 
			
		||||
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 migrate``
 | 
			
		||||
 | 
			
		||||
Restart Server
 | 
			
		||||
--------------
 | 
			
		||||
 | 
			
		||||
Restart the InvenTree server
 | 
			
		||||
		Reference in New Issue
	
	Block a user