Running on Virtual Machine/Bare Metal
If you are running OneDev on virtual machine/bare metal:
- Assume OneDev is installed at /opt/onedev, stop OneDev by running command /opt/onedev/bin/server.(sh|bat) stop
- Make sure database server is up and running if you are using external database
- Extract new OneDev version to a separate folder, say /path/to/new-onedev
- Run below command to perform the upgrade:
/path/to/new-onedev/bin/upgrade.(sh|bat) /opt/onedev
- /opt/onedev will be upgraded and you may launch it to check if things are in order
- You may remove /path/to/new-onedev afterwards if everything is fine
note
If you are running a cluster, you will need to repeat above steps for each OneDev server in the cluster