Upgrading Current
danger
Ensure you backup the uploads directory, config.json, orion.db, and current.db under /backend before upgrading! These files contain your user data.
Upgrading Current may overwrite your local modifications (such as port configuration). If you have made changes to the code, be sure to backup your modifications first.
Once data is lost, it will be very difficult to recover.
Automatic Upgrade
For users who downloaded Current using git clone, upgrading is very simple. Just run the following commands in the root directory of the project:
git fetch origin
git reset --hard origin/main
Manual Upgrade
Manually upgrade the back-end and front-end by downloading the latest package from Github.
Upgrading the Back-end
- Navigate to the
/backenddirectory. - Delete all files except the
uploadsdirectory,config.json,orion.db, andcurrent.db. - Copy the new back-end files to the
/backenddirectory. - Run
pip install -r requirements.txtto install the new dependencies. - Restart the back-end service.
Upgrading the Front-end
- Navigate to the root directory of the project.
- Delete all files except the
/backenddirectory (if your back-end is stored there). - Copy the new front-end files to the root directory of the project.
- Re-run
pnpm installandpnpm buildto install dependencies and build files (refer to Installing Current). - Restart the front-end service.